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

AuthorityKeyIdentifier

public class AuthorityKeyIdentifier extends ExtensionValue
The class encapsulates the ASN.1 DER encoding/decoding work with Authority Key Identifier Extension (OID = 2.5.29.35). (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):
id-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 35 }

AuthorityKeyIdentifier ::= SEQUENCE {
keyIdentifier [0] KeyIdentifier OPTIONAL,
authorityCertIssuer [1] GeneralNames OPTIONAL,
authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL }

KeyIdentifier ::= OCTET STRING

Fields Summary
private final byte[]
keyIdentifier
private final GeneralNames
authorityCertIssuer
private final BigInteger
authorityCertSerialNumber
public static org.apache.harmony.security.asn1.ASN1Type
ASN1
Constructors Summary
public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames authorityCertIssuer, BigInteger authorityCertSerialNumber)

        this.keyIdentifier = keyIdentifier;
        this.authorityCertIssuer = authorityCertIssuer;
        this.authorityCertSerialNumber = authorityCertSerialNumber;
    
Methods Summary
public static org.apache.harmony.security.x509.AuthorityKeyIdentifierdecode(byte[] encoding)

        AuthorityKeyIdentifier aki =
            (AuthorityKeyIdentifier) ASN1.decode(encoding);
        aki.encoding = encoding;
        return aki;
    
public voiddumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)
Places the string representation of extension value into the StringBuffer object.

        buffer.append(prefix).append("AuthorityKeyIdentifier [\n"); //$NON-NLS-1$
        if (keyIdentifier != null) {
            buffer.append(prefix).append("  keyIdentifier:\n"); //$NON-NLS-1$
            buffer.append(Array.toString(keyIdentifier, prefix + "    ")); //$NON-NLS-1$
        }
        if (authorityCertIssuer != null) {
            buffer.append(prefix).append("  authorityCertIssuer: [\n"); //$NON-NLS-1$
            authorityCertIssuer.dumpValue(buffer, prefix + "    "); //$NON-NLS-1$
            buffer.append(prefix).append("  ]\n"); //$NON-NLS-1$
        }
        if (authorityCertSerialNumber != null) {
            buffer.append(prefix).append("  authorityCertSerialNumber: ") //$NON-NLS-1$
                .append(authorityCertSerialNumber).append('\n");
        }
        buffer.append(prefix).append("]\n"); //$NON-NLS-1$
    
public byte[]getEncoded()

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;