CertificateListpublic 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 | ASN1X.509 CertList encoder/decoder. |
Constructors Summary |
---|
public CertificateList(TBSCertList tbsCertList, AlgorithmIdentifier signatureAlgorithm, byte[] signatureValue)TODO
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.
if (encoding == null) {
encoding = CertificateList.ASN1.encode(this);
}
return encoding;
| public AlgorithmIdentifier | getSignatureAlgorithm()Returns the value of signatureAlgorithm field of the structure.
return signatureAlgorithm;
| public byte[] | getSignatureValue()Returns the value of signatureValue field of the structure.
byte[] result = new byte[signatureValue.length];
System.arraycopy(signatureValue, 0, result, 0, signatureValue.length);
return result;
| public TBSCertList | getTbsCertList()Returns the value of tbsCertList field of the structure.
return tbsCertList;
| public java.lang.String | toString()
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();
|
|