|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.security12.java.security.cert.X509CRLEntry
|
+--com.ibm.security12.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
}
| Constructor Summary | |
X509CRLEntryImpl(java.math.BigInteger num,
Date date)
Constructs a revoked certificate entry using the given serial number and revocation date. |
|
X509CRLEntryImpl(java.math.BigInteger num,
Date date,
CRLExtensions crlEntryExts)
Constructs a revoked certificate entry using the given serial number, revocation date and the entry extensions. |
|
X509CRLEntryImpl(byte[] revokedCert)
Unmarshals a revoked certificate from its encoded form. |
|
X509CRLEntryImpl(DerValue derValue)
Unmarshals a revoked certificate from its encoded form. |
|
| Method Summary | |
void |
encode(DerOutputStream outStrm)
Encodes the revoked certificate to an output stream. |
Set |
getCriticalExtensionOIDs()
Gets a Set of the extension(s) marked CRITICAL in this X509CRLEntry. |
byte[] |
getEncoded()
Returns the ASN.1 DER-encoded form of this CRL Entry, which corresponds to the inner SEQUENCE. |
byte[] |
getExtensionValue(String oid)
Gets the DER encoded OCTET string for the extension value (extnValue) identified by the passed in oid String. |
Set |
getNonCriticalExtensionOIDs()
Gets a Set of the extension(s) marked NON-CRITICAL in this X509CRLEntry. |
Date |
getRevocationDate()
Gets the revocation date from this X509CRLEntry, the revocationDate. |
java.math.BigInteger |
getSerialNumber()
Gets the serial number from this X509CRLEntry, i.e. |
boolean |
hasExtensions()
Returns true if this revoked certificate entry has extensions, otherwise false. |
boolean |
hasUnsupportedCriticalExtension()
Return true if a critical extension is found that is not supported, otherwise return false. |
String |
toString()
Returns a printable string of this revoked certificate. |
| Methods inherited from class com.ibm.security12.java.security.cert.X509CRLEntry |
equals,
hashCode |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public X509CRLEntryImpl(java.math.BigInteger num,
Date date)
num - the serial number of the revoked certificate.date - the Date on which revocation took place.
public X509CRLEntryImpl(java.math.BigInteger num,
Date date,
CRLExtensions crlEntryExts)
num - the serial number of the revoked certificate.date - the Date on which revocation took place.crlEntryExts - the extensions for this entry.
public X509CRLEntryImpl(byte[] revokedCert)
throws CRLException
revokedCert - the encoded bytes.
public X509CRLEntryImpl(DerValue derValue)
throws CRLException
derVal - the DER value containing the revoked certificate.| Method Detail |
public boolean hasExtensions()
public void encode(DerOutputStream outStrm)
throws CRLException
outStrm - an output stream to which the encoded revoked
certificate is written.
public byte[] getEncoded()
throws CRLException
public java.math.BigInteger getSerialNumber()
public Date getRevocationDate()
public String toString()
public boolean hasUnsupportedCriticalExtension()
public Set getCriticalExtensionOIDs()
public Set getNonCriticalExtensionOIDs()
public byte[] getExtensionValue(String oid)
oid string is
represented by a set of positive whole number separated
by ".", that means,oid - the Object Identifier value for the extension.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||