java.lang.Object | ||
↳ | java.security.cert.X509CRLEntry | |
↳ | sun.security.x509.X509CRLEntryImpl |
Abstract class for a revoked certificate in a CRL.
This class is for each entry in the revokedCertificates
,
so it deals with the inner SEQUENCE.
The ASN.1 definition for this is:
revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate ChoiceOfTime, crlEntryExtensions Extensions OPTIONAL -- if present, must be v2 } OPTIONAL CertificateSerialNumber ::= INTEGER Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING -- contains a DER encoding of a value -- of the type registered for use with -- the extnId object identifier value }
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a revoked certificate entry using the given
serial number and revocation date.
| |||||||||||
Constructs a revoked certificate entry using the given
serial number, revocation date and the entry
extensions.
| |||||||||||
Unmarshals a revoked certificate from its encoded form.
| |||||||||||
Unmarshals a revoked certificate from its encoded form.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Encodes the revoked certificate to an output stream.
| |||||||||||
Get the issuer of the X509Certificate described by this entry.
| |||||||||||
Gets a Set of the extension(s) marked CRITICAL in this
X509CRLEntry.
| |||||||||||
Returns the ASN.1 DER-encoded form of this CRL Entry,
which corresponds to the inner SEQUENCE.
| |||||||||||
get an extension
| |||||||||||
Gets the DER encoded OCTET string for the extension value
(extnValue) identified by the passed in oid String.
| |||||||||||
Gets a Set of the extension(s) marked NON-CRITICAL in this
X509CRLEntry.
| |||||||||||
get Reason Code from CRL entry.
| |||||||||||
Gets the revocation date from this X509CRLEntry,
the revocationDate.
| |||||||||||
Gets the serial number from this X509CRLEntry,
i.e.
| |||||||||||
Returns true if this revoked certificate entry has
extensions, otherwise false.
| |||||||||||
Return true if a critical extension is found that is
not supported, otherwise return false.
| |||||||||||
Utility method to convert an arbitrary instance of X509CRLEntry
to a X509CRLEntryImpl.
| |||||||||||
Returns a printable string of this revoked certificate.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a revoked certificate entry using the given serial number and revocation date.
num | the serial number of the revoked certificate. |
---|---|
date | the Date on which revocation took place. |
Constructs a revoked certificate entry using the given serial number, revocation date and the entry extensions.
num | the serial number of the revoked certificate. |
---|---|
date | the Date on which revocation took place. |
crlEntryExts | the extensions for this entry. |
Unmarshals a revoked certificate from its encoded form.
revokedCert | the encoded bytes. |
---|
CRLException | on parsing errors. |
---|
Unmarshals a revoked certificate from its encoded form.
CRLException | on parsing errors. |
---|
Encodes the revoked certificate to an output stream.
outStrm | an output stream to which the encoded revoked certificate is written. |
---|
CRLException | on encoding errors. |
---|
Get the issuer of the X509Certificate described by this entry. If the certificate issuer is also the CRL issuer, this method returns null.
This method is used with indirect CRLs. The default implementation always returns null. Subclasses that wish to support indirect CRLs should override it.
Gets a Set of the extension(s) marked CRITICAL in this X509CRLEntry. In the returned set, each extension is represented by its OID string.
Returns the ASN.1 DER-encoded form of this CRL Entry, which corresponds to the inner SEQUENCE.
CRLException | if an encoding error occurs. |
---|
get an extension
oid | ObjectIdentifier of extension desired |
---|
Gets the DER encoded OCTET string for the extension value
(extnValue) identified by the passed in oid String.
The oid
string is
represented by a set of positive whole number separated
by ".", that means,
<positive whole number>.<positive whole number>.<positive
whole number>.<...>
oid | the Object Identifier value for the extension. |
---|
Gets a Set of the extension(s) marked NON-CRITICAL in this X509CRLEntry. In the returned set, each extension is represented by its OID string.
Gets the revocation date from this X509CRLEntry, the revocationDate.
Gets the serial number from this X509CRLEntry, i.e. the userCertificate.
Returns true if this revoked certificate entry has extensions, otherwise false.
Return true if a critical extension is found that is not supported, otherwise return false.
Utility method to convert an arbitrary instance of X509CRLEntry to a X509CRLEntryImpl. Does a cast if possible, otherwise reparses the encoding.
CRLException |
---|
Returns a printable string of this revoked certificate.