Bouncy Castle Cryptography Library 1.33 | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.bouncycastle.x509.X509V2AttributeCertificate
Constructor Summary | |
| |
|
Method Summary | |
void | |
void |
|
X509Attribute[] |
|
X509Attribute[] |
|
Set | |
byte[] |
|
byte[] |
|
AttributeCertificateHolder |
|
AttributeCertificateIssuer |
|
boolean[] | |
Set | |
Date |
|
Date |
|
BigInteger |
|
byte[] | |
int |
|
boolean | |
void |
|
public X509V2AttributeCertificate(InputStream encIn) throws IOException
public X509V2AttributeCertificate(byte[] encoded) throws IOException
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
- Specified by:
- checkValidity in interface X509AttributeCertificate
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
- Specified by:
- checkValidity in interface X509AttributeCertificate
public X509Attribute[] getAttributes()
Return the attributes contained in the attribute block in the certificate.
- Specified by:
- getAttributes in interface X509AttributeCertificate
- Returns:
- an array of attributes.
public X509Attribute[] getAttributes(String oid)
Return the attributes with the same type as the passed in oid.
- Specified by:
- getAttributes in interface X509AttributeCertificate
- Parameters:
oid
- the object identifier we wish to match.
- Returns:
- an array of matched attributes, null if there is no match.
public Set getCriticalExtensionOIDs()
- Specified by:
- getCriticalExtensionOIDs in interface X509AttributeCertificate
public byte[] getEncoded() throws IOException
Return an ASN.1 encoded byte array representing the attribute certificate.
- Specified by:
- getEncoded in interface X509AttributeCertificate
- Returns:
- an ASN.1 encoded byte array.
public byte[] getExtensionValue(String oid)
public AttributeCertificateHolder getHolder()
Return the holder of the certificate.
- Specified by:
- getHolder in interface X509AttributeCertificate
- Returns:
- the holder.
public AttributeCertificateIssuer getIssuer()
Return the issuer details for the certificate.
- Specified by:
- getIssuer in interface X509AttributeCertificate
- Returns:
- the issuer details.
public boolean[] getIssuerUniqueID()
- Specified by:
- getIssuerUniqueID in interface X509AttributeCertificate
public Set getNonCriticalExtensionOIDs()
- Specified by:
- getNonCriticalExtensionOIDs in interface X509AttributeCertificate
public Date getNotAfter()
Return the date after which the certificate is not valid.
- Specified by:
- getNotAfter in interface X509AttributeCertificate
- Returns:
- the "not valid afer" date.
public Date getNotBefore()
Return the date before which the certificate is not valid.
- Specified by:
- getNotBefore in interface X509AttributeCertificate
- Returns:
- the "not valid before" date.
public BigInteger getSerialNumber()
Return the serial number for the certificate.
- Specified by:
- getSerialNumber in interface X509AttributeCertificate
- Returns:
- the serial number.
public byte[] getSignature()
- Specified by:
- getSignature in interface X509AttributeCertificate
public int getVersion()
Return the version number for the certificate.
- Specified by:
- getVersion in interface X509AttributeCertificate
- Returns:
- the version number.
public boolean hasUnsupportedCriticalExtension()
public final void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
- Specified by:
- verify in interface X509AttributeCertificate