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

CertificateList

public class CertificateList extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the X.509 CRL. Its ASN notation is as follows (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):
CertificateList ::= SEQUENCE {
tbsCertList TBSCertList,
signatureAlgorithm AlgorithmIdentifier,
signatureValue BIT STRING
}

Fields Summary
private final TBSCertList
tbsCertList
private final AlgorithmIdentifier
signatureAlgorithm
private final byte[]
signatureValue
private byte[]
encoding
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
X.509 CertList encoder/decoder.
Constructors Summary
public CertificateList(TBSCertList tbsCertList, AlgorithmIdentifier signatureAlgorithm, byte[] signatureValue)
TODO

param
tbsCertList: TBSCertList
param
signatureAlgorithm: AlgorithmIdentifier
param
signatureValue: byte[]

        this.tbsCertList = tbsCertList;
        this.signatureAlgorithm = signatureAlgorithm;
        this.signatureValue = new byte[signatureValue.length];
        System.arraycopy(signatureValue, 0, this.signatureValue, 0, 
                                                    signatureValue.length);
    
private CertificateList(TBSCertList tbsCertList, AlgorithmIdentifier signatureAlgorithm, byte[] signatureValue, byte[] encoding)

        this(tbsCertList, signatureAlgorithm, signatureValue);
        this.encoding = encoding;
    
Methods Summary
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 TBSCertList value.

return
a byte array containing ASN.1 encode form.

        if (encoding == null) {
            encoding = CertificateList.ASN1.encode(this);
        }
        return encoding;
    
public AlgorithmIdentifiergetSignatureAlgorithm()
Returns the value of signatureAlgorithm field of the structure.

return
signatureAlgorithm

        return signatureAlgorithm;
    
public byte[]getSignatureValue()
Returns the value of signatureValue field of the structure.

return
signatureValue

        byte[] result = new byte[signatureValue.length];
        System.arraycopy(signatureValue, 0, result, 0, signatureValue.length);
        return result;
    
public TBSCertListgetTbsCertList()
Returns the value of tbsCertList field of the structure.

return
tbsCertList

        return tbsCertList;
    
public java.lang.StringtoString()

        StringBuffer res = new StringBuffer();
        tbsCertList.dumpValue(res);
        res.append("\nSignature Value:\n"); //$NON-NLS-1$
        res.append(Array.toString(signatureValue, "")); //$NON-NLS-1$
        return res.toString();