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
}
| Modifier and Type | Field and Description |
|---|---|
| private X500Principal | |
| private CRLExtensions | |
| private static final boolean | |
| private Date | |
| private byte[] | |
| private SerialNumber |
| Access | Constructor and Description |
|---|---|
| public | X509CRLEntryImpl(BigInteger
the serial number of the revoked certificate. num, Date the Date on which revocation took place. date)Constructs a revoked certificate entry using the given serial number and revocation date. |
| public | X509CRLEntryImpl(BigInteger
the serial number of the revoked certificate. num, Date the Date on which revocation took place. date, CRLExtensions the extensions for this entry. crlEntryExts)Constructs a revoked certificate entry using the given serial number, revocation date and the entry extensions. |
| public | X509CRLEntryImpl(byte[]
the encoded bytes. revokedCert)Unmarshals a revoked certificate from its encoded form. |
| public | X509CRLEntryImpl(DerValue
the DER value containing the revoked certificate. derValue)Unmarshals a revoked certificate from its encoded form. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(X509CRLEntryImpl that)
Implements java. Compares this object with the specified object for order. |
| public void | encode(DerOutputStream
an output stream to which the encoded revoked
certificate is written. outStrm)Encodes the revoked certificate to an output stream. |
| public X500Principal | getCertificateIssuer()
Overrides java. Get the issuer of the X509Certificate described by this entry. |
| pack-priv CertificateIssuerExtension | Returns: the CertificateIssuerExtension, or null if it does not existReturns the CertificateIssuerExtension |
| public Set | Returns: a set of the extension oid strings in the Object that are marked critical.Implements java. Gets a Set of the extension(s) marked CRITICAL in this X509CRLEntry. |
| public byte[] | getEncoded()
Implements abstract java. Returns the ASN.1 DER-encoded form of this CRL Entry, which corresponds to the inner SEQUENCE. |
| private byte[] | |
| public Extension | Returns: Extension of type<extension> or null, if not foundObjectIdentifier of extension desired oid)get an extension |
| public Map | Returns: the extension map, can be empty, but not nullReturns all extensions for this entry in a map |
| public byte[] | Returns: the DER encoded octet string of the extension value.the Object Identifier value for the extension. oid)Implements java. Gets the DER encoded OCTET string for the extension value (extnValue) identified by the passed in oid String. |
| public Set | Returns: a set of the extension oid strings in the Object that are marked critical.Implements java. Gets a Set of the extension(s) marked NON-CRITICAL in this X509CRLEntry. |
| public Integer | |
| public Date | Returns: the revocation date.Implements abstract java. Gets the revocation date from this X509CRLEntry, the revocationDate. |
| public CRLReason | getRevocationReason()
Overrides java. This method is the overridden implementation of the getRevocationReason method in X509CRLEntry. |
| public static CRLReason | getRevocationReason(X509CRLEntry crlEntry)
This static method is the default implementation of the getRevocationReason method in X509CRLEntry. |
| public BigInteger | Returns: the serial number.Implements abstract java. Gets the serial number from this X509CRLEntry, i.e. the userCertificate. |
| public boolean | Returns: true if this CRL entry has extensions, otherwise false.Implements abstract java. Returns true if this revoked certificate entry has extensions, otherwise false. |
| public boolean | hasUnsupportedCriticalExtension()
Implements java. Return true if a critical extension is found that is not supported, otherwise return false. |
| private void | |
| pack-priv void | |
| public static X509CRLEntryImpl | toImpl(X509CRLEntry entry)
Utility method to convert an arbitrary instance of X509CRLEntry to a X509CRLEntryImpl. |
| public String | Returns: value of this revoked certificate in a printable form.Implements abstract java. Returns a printable string of this revoked certificate. |
| certIssuer | back to summary |
|---|---|
| private X500Principal certIssuer | |
| extensions | back to summary |
|---|---|
| private CRLExtensions extensions | |
| isExplicit | back to summary |
|---|---|
| private static final boolean isExplicit | |
| revocationDate | back to summary |
|---|---|
| private Date revocationDate | |
| revokedCert | back to summary |
|---|---|
| private byte[] revokedCert | |
| serialNumber | back to summary |
|---|---|
| private SerialNumber serialNumber | |
| X509CRLEntryImpl | back to summary |
|---|---|
| public X509CRLEntryImpl(BigInteger num, Date date) Constructs a revoked certificate entry using the given serial number and revocation date.
| |
| X509CRLEntryImpl | back to summary |
|---|---|
| public X509CRLEntryImpl(BigInteger num, Date date, CRLExtensions crlEntryExts) Constructs a revoked certificate entry using the given serial number, revocation date and the entry extensions.
| |
| X509CRLEntryImpl | back to summary |
|---|---|
| public X509CRLEntryImpl(byte[] revokedCert) throws CRLException Unmarshals a revoked certificate from its encoded form.
| |
| X509CRLEntryImpl | back to summary |
|---|---|
| public X509CRLEntryImpl(DerValue derValue) throws CRLException Unmarshals a revoked certificate from its encoded form.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(X509CRLEntryImpl that) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream outStrm) Encodes the revoked certificate to an output stream.
| |
| getCertificateIssuer | back to summary |
|---|---|
| public X500Principal getCertificateIssuer() Overrides java. Doc from java. 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.
| |
| getCertificateIssuerExtension | back to summary |
|---|---|
| pack-priv CertificateIssuerExtension getCertificateIssuerExtension() Returns the CertificateIssuerExtension
| |
| getCriticalExtensionOIDs | back to summary |
|---|---|
| public Set Implements java. Gets a Set of the extension(s) marked CRITICAL in this X509CRLEntry. In the returned set, each extension is represented by its OID string. | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements abstract java. Returns the ASN.1 DER-encoded form of this CRL Entry, which corresponds to the inner SEQUENCE. | |
| getEncoded0 | back to summary |
|---|---|
| private byte[] getEncoded0() | |
| getExtension | back to summary |
|---|---|
| public Extension getExtension(ObjectIdentifier oid) get an extension
| |
| getExtensions | back to summary |
|---|---|
| public Map Returns all extensions for this entry in a map | |
| getExtensionValue | back to summary |
|---|---|
| public byte[] getExtensionValue(String oid) Implements java. Gets the DER encoded OCTET string for the extension value
(extnValue) identified by the passed in oid String.
The
| |
| getNonCriticalExtensionOIDs | back to summary |
|---|---|
| public Set Implements java. 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. | |
| getReasonCode | back to summary |
|---|---|
| public Integer getReasonCode() get Reason Code from CRL entry.
| |
| getRevocationDate | back to summary |
|---|---|
| public Date getRevocationDate() Implements abstract java. Gets the revocation date from this X509CRLEntry, the revocationDate.
| |
| getRevocationReason | back to summary |
|---|---|
| public CRLReason getRevocationReason() Overrides java. This method is the overridden implementation of the getRevocationReason method in X509CRLEntry. It is better performance-wise since it returns cached values.
| |
| getRevocationReason | back to summary |
|---|---|
| public static CRLReason getRevocationReason(X509CRLEntry crlEntry) This static method is the default implementation of the getRevocationReason method in X509CRLEntry. | |
| getSerialNumber | back to summary |
|---|---|
| public BigInteger getSerialNumber() Implements abstract java. Gets the serial number from this X509CRLEntry, i.e. the userCertificate.
| |
| hasExtensions | back to summary |
|---|---|
| public boolean hasExtensions() Implements abstract java. Returns true if this revoked certificate entry has extensions, otherwise false.
| |
| hasUnsupportedCriticalExtension | back to summary |
|---|---|
| public boolean hasUnsupportedCriticalExtension() Implements java. Return true if a critical extension is found that is not supported, otherwise return false. | |
| parse | back to summary |
|---|---|
| private void parse(DerValue derVal) throws CRLException, IOException | |
| setCertificateIssuer | back to summary |
|---|---|
| pack-priv void setCertificateIssuer(X500Principal crlIssuer, X500Principal certIssuer) | |
| toImpl | back to summary |
|---|---|
| public static X509CRLEntryImpl toImpl(X509CRLEntry entry) throws CRLException Utility method to convert an arbitrary instance of X509CRLEntry to a X509CRLEntryImpl. Does a cast if possible, otherwise reparses the encoding. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Returns a printable string of this revoked certificate. | |