Class X509CRLEntryImpl
java.lang.Object
java.security.cert.X509CRLEntry
org.apache.harmony.security.provider.cert.X509CRLEntryImpl
- All Implemented Interfaces:
X509Extension
public class X509CRLEntryImpl extends X509CRLEntry
Implementation of X509CRLEntry. It wraps the instance
of org.apache.harmony.security.x509.TBSCertList.RevokedCertificate
obtained during the decoding of TBSCertList substructure
of the CertificateList structure which is an X.509 form of CRL.
(see RFC 3280 at http://www.ietf.org/rfc/rfc3280.txt)
Normally the instances of this class are constructed by involving
X509CRLImpl object.
- See Also:
TBSCertList,X509CRLImpl,X509CRLEntry
-
Constructor Summary
Constructors Constructor Description X509CRLEntryImpl(TBSCertList.RevokedCertificate rcert, X500Principal issuer)Creates an instance on the base of existingTBSCertList.RevokedCertificateobject and information about the issuer of revoked certificate. -
Method Summary
Modifier and Type Method Description X500PrincipalgetCertificateIssuer()Returns the issuer of the revoked certificate.SetgetCriticalExtensionOIDs()Returns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.byte[]getEncoded()Returns this entry in ASN.1 DER encoded form.byte[]getExtensionValue(String oid)Returns the extension value as DER-encoded OCTET string for the specified OID.SetgetNonCriticalExtensionOIDs()Returns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.DategetRevocationDate()Returns the date when the certificate is revoked.BigIntegergetSerialNumber()Returns the serial number of the revoked certificate.booleanhasExtensions()Returns whether this CRL entry has extensions.booleanhasUnsupportedCriticalExtension()Returns whether this instance has an extension marked as CRITICAL that it cannot support.StringtoString()Returns a string representation of this instance.Methods inherited from class java.security.cert.X509CRLEntry
equals, hashCode
-
Constructor Details
-
X509CRLEntryImpl
Creates an instance on the base of existingTBSCertList.RevokedCertificateobject and information about the issuer of revoked certificate. If specified issuer is null, it is supposed that issuer of the revoked certificate is the same as for involving CRL.
-
-
Method Details
-
getEncoded
Description copied from class:X509CRLEntryReturns this entry in ASN.1 DER encoded form.- Specified by:
getEncodedin classX509CRLEntry- Returns:
- the encoded form of this entry.
- Throws:
CRLException- if encoding fails.- See Also:
method documentation for more info
-
getSerialNumber
Description copied from class:X509CRLEntryReturns the serial number of the revoked certificate.- Specified by:
getSerialNumberin classX509CRLEntry- Returns:
- the serial number of the revoked certificate.
- See Also:
method documentation for more info
-
getCertificateIssuer
Description copied from class:X509CRLEntryReturns the issuer of the revoked certificate.- Overrides:
getCertificateIssuerin classX509CRLEntry- Returns:
- the issuer of the revoked certificate, or
nullif the issuer is equal to the CRL issuer. - See Also:
method documentation for more info
-
getRevocationDate
Description copied from class:X509CRLEntryReturns the date when the certificate is revoked.- Specified by:
getRevocationDatein classX509CRLEntry- Returns:
- the date when the certificate is revoked.
- See Also:
method documentation for more info
-
hasExtensions
public boolean hasExtensions()Description copied from class:X509CRLEntryReturns whether this CRL entry has extensions.- Specified by:
hasExtensionsin classX509CRLEntry- Returns:
trueis this CRL entry has extensions, otherwisefalse.- See Also:
method documentation for more info
-
toString
Description copied from class:X509CRLEntryReturns a string representation of this instance.- Specified by:
toStringin classX509CRLEntry- Returns:
- a string representation of this instance.
- See Also:
method documentation for more info
-
getNonCriticalExtensionOIDs
Description copied from interface:X509ExtensionReturns the set of OIDs of the extension(s) marked as NON-CRITICAL, that this implementation manages.- Returns:
- the set of extension OIDs marked as NON-CRITIAL, an empty set if
none are marked as NON-.CRITICAL, or
nullif no extensions are present. - See Also:
method documentation for more info
-
getCriticalExtensionOIDs
Description copied from interface:X509ExtensionReturns the set of OIDs of the extension(s) marked as CRITICAL, that this implementation manages.- Returns:
- the set of extension OIDs marked as CRITIAL, an empty set if none
are marked as CRITICAL, or
nullif no extensions are present. - See Also:
method documentation for more info
-
getExtensionValue
Description copied from interface:X509ExtensionReturns the extension value as DER-encoded OCTET string for the specified OID.- Parameters:
oid- the object identifier to get the extension value for.- Returns:
- the extension value as DER-encoded OCTET string, or
nullif no extension for the specified OID can be found. - See Also:
method documentation for more info
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()Description copied from interface:X509ExtensionReturns whether this instance has an extension marked as CRITICAL that it cannot support.- Returns:
trueif an unsupported CRITICAL extension is present,falseotherwise.- See Also:
method documentation for more info
-