public class X509V2AttributeCertificate extends Object implements X509AttributeCertificate
| Constructor and Description |
|---|
X509V2AttributeCertificate(byte[] encoded)
Deprecated.
|
X509V2AttributeCertificate(InputStream encIn)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidity()
Deprecated.
|
void |
checkValidity(Date date)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
Compares this instance with the specified object and indicates if they
are equal.
|
X509Attribute[] |
getAttributes()
Deprecated.
Return the attributes contained in the attribute block in the certificate.
|
X509Attribute[] |
getAttributes(String oid)
Deprecated.
Return the attributes with the same type as the passed in oid.
|
Set |
getCriticalExtensionOIDs()
Deprecated.
Returns the set of OIDs of the extension(s) marked as CRITICAL, that this
implementation manages.
|
byte[] |
getEncoded()
Deprecated.
Return an ASN.1 encoded byte array representing the attribute certificate.
|
byte[] |
getExtensionValue(String oid)
Deprecated.
Returns the extension value as DER-encoded OCTET string for the specified
OID.
|
AttributeCertificateHolder |
getHolder()
Deprecated.
Return the holder of the certificate.
|
AttributeCertificateIssuer |
getIssuer()
Deprecated.
Return the issuer details for the certificate.
|
boolean[] |
getIssuerUniqueID()
Deprecated.
|
Set |
getNonCriticalExtensionOIDs()
Deprecated.
Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that
this implementation manages.
|
Date |
getNotAfter()
Deprecated.
Return the date after which the certificate is not valid.
|
Date |
getNotBefore()
Deprecated.
Return the date before which the certificate is not valid.
|
BigInteger |
getSerialNumber()
Deprecated.
Return the serial number for the certificate.
|
byte[] |
getSignature()
Deprecated.
|
int |
getVersion()
Deprecated.
Return the version number for the certificate.
|
int |
hashCode()
Deprecated.
Returns an integer hash code for this object.
|
boolean |
hasUnsupportedCriticalExtension()
Deprecated.
Returns whether this instance has an extension marked as CRITICAL that it
cannot support.
|
void |
verify(PublicKey key,
String provider)
Deprecated.
|
public X509V2AttributeCertificate(InputStream encIn) throws IOException
IOExceptionpublic X509V2AttributeCertificate(byte[] encoded)
throws IOException
IOExceptionpublic int getVersion()
X509AttributeCertificategetVersion in interface X509AttributeCertificatepublic BigInteger getSerialNumber()
X509AttributeCertificategetSerialNumber in interface X509AttributeCertificatepublic AttributeCertificateHolder getHolder()
X509AttributeCertificategetHolder in interface X509AttributeCertificatepublic AttributeCertificateIssuer getIssuer()
X509AttributeCertificategetIssuer in interface X509AttributeCertificatepublic Date getNotBefore()
X509AttributeCertificategetNotBefore in interface X509AttributeCertificatepublic Date getNotAfter()
X509AttributeCertificategetNotAfter in interface X509AttributeCertificatepublic boolean[] getIssuerUniqueID()
getIssuerUniqueID in interface X509AttributeCertificatepublic void checkValidity()
throws CertificateExpiredException,
CertificateNotYetValidException
checkValidity in interface X509AttributeCertificateCertificateExpiredExceptionCertificateNotYetValidExceptionpublic void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
checkValidity in interface X509AttributeCertificateCertificateExpiredExceptionCertificateNotYetValidExceptionpublic byte[] getSignature()
getSignature in interface X509AttributeCertificatepublic final void verify(PublicKey key, String provider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify in interface X509AttributeCertificateCertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureExceptionpublic byte[] getEncoded()
throws IOException
X509AttributeCertificategetEncoded in interface X509AttributeCertificateIOException - if the certificate cannot be encoded.public byte[] getExtensionValue(String oid)
X509ExtensiongetExtensionValue in interface X509Extensionoid - the object identifier to get the extension value for.null
if no extension for the specified OID can be found.public Set getNonCriticalExtensionOIDs()
X509ExtensiongetNonCriticalExtensionOIDs in interface X509Extensionnull if no
extensions are present.public Set getCriticalExtensionOIDs()
X509ExtensiongetCriticalExtensionOIDs in interface X509Extensionnull if no extensions are
present.public boolean hasUnsupportedCriticalExtension()
X509ExtensionhasUnsupportedCriticalExtension in interface X509Extensiontrue if an unsupported CRITICAL extension is present,
false otherwise.public X509Attribute[] getAttributes()
X509AttributeCertificategetAttributes in interface X509AttributeCertificatepublic X509Attribute[] getAttributes(String oid)
X509AttributeCertificategetAttributes in interface X509AttributeCertificateoid - the object identifier we wish to match.public boolean equals(Object o)
Objecto must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true only if this ==
o. See Writing a correct
equals method
if you intend implementing your own equals method.
The general contract for the equals and Object.hashCode() methods is that if equals returns true for
any two objects, then hashCode() must return the same value for
these objects. This means that subclasses of Object usually
override either both methods or neither of them.
equals in class Objecto - the object to compare this instance with.true if the specified object is equal to this Object; false otherwise.Object.hashCode()public int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ObjectObject.equals(java.lang.Object)