AccessDescriptionpublic class AccessDescription extends Object The class encapsulates the ASN.1 DER encoding/decoding work
with the AccessDescription which is a part of X.509 framework
(as specified in RFC 3280 -
Internet X.509 Public Key Infrastructure.
Certificate and Certificate Revocation List (CRL) Profile.
http://www.ietf.org/rfc/rfc3280.txt):
AccessDescription ::= SEQUENCE {
accessMethod OBJECT IDENTIFIER,
accessLocation GeneralName } |
Fields Summary |
---|
private final String | accessMethod | private final GeneralName | accessLocation | private byte[] | encoding | public static final org.apache.harmony.security.asn1.ASN1Sequence | ASN1Custom AccessDescription DER encoder/decoder |
Constructors Summary |
---|
public AccessDescription(String accessMethod, GeneralName accessLocation)
this.accessMethod = accessMethod;
this.accessLocation = accessLocation;
| private AccessDescription(String accessMethod, GeneralName accessLocation, byte[] encoding)
this.accessMethod = accessMethod;
this.accessLocation = accessLocation;
this.encoding = encoding;
|
Methods Summary |
---|
public GeneralName | getAccessLocation()
return accessLocation;
| public java.lang.String | getAccessMethod()
return accessMethod;
| public byte[] | getEncoded()Returns ASN.1 encoded form of this X.509 AccessDescription.
if (encoding == null) {
encoding = ASN1.encode(this);
}
return encoding;
| public java.lang.String | toString()
StringBuffer res = new StringBuffer();
res.append("\n-- AccessDescription:"); //$NON-NLS-1$
res.append("\naccessMethod: "); //$NON-NLS-1$
res.append(accessMethod);
res.append("\naccessLocation: "); //$NON-NLS-1$
res.append(accessLocation);
res.append("\n-- AccessDescription END\n"); //$NON-NLS-1$
return res.toString();
|
|