FileDocCategorySizeDatePackage
AccessDescription.javaAPI DocAndroid 1.5 API4015Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509

AccessDescription

public 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
ASN1
Custom 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 GeneralNamegetAccessLocation()

return
Returns the accessLocation.

        return accessLocation;
    
public java.lang.StringgetAccessMethod()

return
Returns the accessMethod.

        return accessMethod;
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 AccessDescription.

return
a byte array containing ASN.1 encoded form.

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;
    
public java.lang.StringtoString()

        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();