| java.lang.Object java.security.cert.X509CRLEntry sun.security.x509.X509CRLEntryImpl
X509CRLEntryImpl | public class X509CRLEntryImpl extends X509CRLEntry (Code) | | 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
}
author: Hemma Prafullchandra version: 1.16 02/02/00 |
Method Summary | |
public void | encode(DerOutputStream outStrm) Encodes the revoked certificate to an output stream. | public Set | getCriticalExtensionOIDs() Gets a Set of the extension(s) marked CRITICAL in this
X509CRLEntry. | public byte[] | getEncoded() Returns the ASN.1 DER-encoded form of this CRL Entry,
which corresponds to the inner SEQUENCE. | public Extension | getExtension(ObjectIdentifier oid) | public byte[] | getExtensionValue(String oid) 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>.<...>
Parameters: oid - the Object Identifier value for the extension. | public Set | getNonCriticalExtensionOIDs() Gets a Set of the extension(s) marked NON-CRITICAL in this
X509CRLEntry. | public Integer | getReasonCode() get Reason Code from CRL entry. | public Date | getRevocationDate() Gets the revocation date from this X509CRLEntry,
the revocationDate. | public BigInteger | getSerialNumber() Gets the serial number from this X509CRLEntry,
i.e. | public boolean | hasExtensions() Returns true if this revoked certificate entry has
extensions, otherwise false. | public boolean | hasUnsupportedCriticalExtension() Return true if a critical extension is found that is
not supported, otherwise return false. | public static X509CRLEntryImpl | toImpl(X509CRLEntry entry) Utility method to convert an arbitrary instance of X509CRLEntry
to a X509CRLEntryImpl. | public String | toString() Returns a printable string of this revoked certificate. |
X509CRLEntryImpl | public X509CRLEntryImpl(BigInteger num, Date date)(Code) | | Constructs a revoked certificate entry using the given
serial number and revocation date.
Parameters: num - the serial number of the revoked certificate. Parameters: date - the Date on which revocation took place. |
X509CRLEntryImpl | public X509CRLEntryImpl(BigInteger num, Date date, CRLExtensions crlEntryExts)(Code) | | Constructs a revoked certificate entry using the given
serial number, revocation date and the entry
extensions.
Parameters: num - the serial number of the revoked certificate. Parameters: date - the Date on which revocation took place. Parameters: crlEntryExts - the extensions for this entry. |
X509CRLEntryImpl | public X509CRLEntryImpl(byte[] revokedCert) throws CRLException(Code) | | Unmarshals a revoked certificate from its encoded form.
Parameters: revokedCert - the encoded bytes. exception: CRLException - on parsing errors. |
X509CRLEntryImpl | public X509CRLEntryImpl(DerValue derValue) throws CRLException(Code) | | Unmarshals a revoked certificate from its encoded form.
Parameters: derVal - the DER value containing the revoked certificate. exception: CRLException - on parsing errors. |
encode | public void encode(DerOutputStream outStrm) throws CRLException(Code) | | Encodes the revoked certificate to an output stream.
Parameters: outStrm - an output stream to which the encoded revokedcertificate is written. exception: CRLException - on encoding errors. |
getCriticalExtensionOIDs | public Set getCriticalExtensionOIDs()(Code) | | Gets a Set of the extension(s) marked CRITICAL in this
X509CRLEntry. In the returned set, each extension is
represented by its OID string.
a set of the extension oid strings in theObject that are marked critical. |
getEncoded | public byte[] getEncoded() throws CRLException(Code) | | Returns the ASN.1 DER-encoded form of this CRL Entry,
which corresponds to the inner SEQUENCE.
exception: CRLException - if an encoding error occurs. |
getExtensionValue | public byte[] getExtensionValue(String oid)(Code) | | 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>.<...>
Parameters: oid - the Object Identifier value for the extension. the DER encoded octet string of the extension value. |
getNonCriticalExtensionOIDs | public Set getNonCriticalExtensionOIDs()(Code) | | 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.
a set of the extension oid strings in theObject that are marked critical. |
getRevocationDate | public Date getRevocationDate()(Code) | | Gets the revocation date from this X509CRLEntry,
the revocationDate.
the revocation date. |
getSerialNumber | public BigInteger getSerialNumber()(Code) | | Gets the serial number from this X509CRLEntry,
i.e. the userCertificate.
the serial number. |
hasExtensions | public boolean hasExtensions()(Code) | | Returns true if this revoked certificate entry has
extensions, otherwise false.
true if this CRL entry has extensions, otherwisefalse. |
hasUnsupportedCriticalExtension | public boolean hasUnsupportedCriticalExtension()(Code) | | Return true if a critical extension is found that is
not supported, otherwise return false.
|
toImpl | public static X509CRLEntryImpl toImpl(X509CRLEntry entry) throws CRLException(Code) | | Utility method to convert an arbitrary instance of X509CRLEntry
to a X509CRLEntryImpl. Does a cast if possible, otherwise reparses
the encoding.
|
toString | public String toString()(Code) | | Returns a printable string of this revoked certificate.
value of this revoked certificate in a printable form. |
|
|