public class RevokedCertificate
extends java.security.cert.X509CRLEntry
implements oracle.security.crypto.asn1.ASN1Object, java.io.Externalizable
A revoked certificate consists of a serial number, a revocation date, and optionally a set of CRL entry extensions.
CRL, Serialized Form| Constructor and Description |
|---|
RevokedCertificate()
Creates a new empty instance.
|
RevokedCertificate(java.math.BigInteger sn, java.util.Date rd)
Creates a new revoked certificate, with the given serial number, revocation date.
|
RevokedCertificate(java.math.BigInteger sn, java.util.Date rd, java.util.List<X509Extension> exts)
Creates a new revoked certificate, with the given serial number, revocation date, and set of extensions.
|
RevokedCertificate(java.math.BigInteger sn, java.util.Date rd, java.util.Vector<X509Extension> exts)
Deprecated.
|
RevokedCertificate(java.math.BigInteger sn, java.util.Date rd, X509ExtensionSet exts)
Creates a new revoked certificate, with the given serial number, revocation date, and set of extensions.
|
RevokedCertificate(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(X509Extension ext) |
java.util.Enumeration<oracle.security.crypto.asn1.ASN1ObjectID> |
extensionTypes()
Deprecated.
|
javax.security.auth.x500.X500Principal |
getCertificateIssuer() |
java.util.Set<java.lang.String> |
getCriticalExtensionOIDs() |
byte[] |
getEncoded() |
X509Extension |
getExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
Returns the extension with the specified OID.
|
java.util.Vector<X509Extension> |
getExtensions()
Deprecated.
|
java.util.ArrayList<X509Extension> |
getExtensionsAsList()
Returns a vector of the CRL entry extensions for this revoked certificate.
|
java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,X509Extension> |
getExtensionsAsMap()
Returns a vector of the CRL entry extensions for this revoked certificate.
|
X509ExtensionSet |
getExtensionSet()
Returns the CRL entry extensions for this revoked certificate.
|
byte[] |
getExtensionValue(java.lang.String oid) |
java.util.Set<java.lang.String> |
getNonCriticalExtensionOIDs() |
java.util.Date |
getRevocationDate()
Returns the date on which the certificate was revoked.
|
java.math.BigInteger |
getSerialNo()
Returns the serial number of the certificate which was revoked.
|
java.math.BigInteger |
getSerialNumber() |
boolean |
hasExtensions() |
boolean |
hasUnsupportedCriticalExtension() |
void |
input(java.io.InputStream is) |
int |
length() |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
java.lang.String |
toString()
Returns a string representation of this
RevokedCertificate object. |
void |
writeExternal(java.io.ObjectOutput os) |
public RevokedCertificate()
public RevokedCertificate(java.math.BigInteger sn,
java.util.Date rd)
sn - the serial numberrd - the revocation date
public RevokedCertificate(java.math.BigInteger sn,
java.util.Date rd,
X509ExtensionSet exts)
sn - the serial numberrd - the revocation dateexts - the set of extensions
public RevokedCertificate(java.math.BigInteger sn,
java.util.Date rd,
java.util.Vector<X509Extension> exts)
RevokedCertificate(BigInteger, Date, List)sn - the serial numberrd - the revocation dateexts - the set of extension - each element must be an instance of X509Extension.
public RevokedCertificate(java.math.BigInteger sn,
java.util.Date rd,
java.util.List<X509Extension> exts)
sn - the serial numberrd - the revocation dateexts - the set of extension - each element must be an instance of X509Extension.
public RevokedCertificate(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger getSerialNo()
public java.util.Date getRevocationDate()
getRevocationDate in class java.security.cert.X509CRLEntrypublic void addExtension(X509Extension ext)
public X509ExtensionSet getExtensionSet()
public java.util.Vector<X509Extension> getExtensions()
getExtensionsAsList()Vector of X509Extension, or null if no extensions are defined.public java.util.ArrayList<X509Extension> getExtensionsAsList()
Vector of X509Extension, or null if no extensions are defined.public java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,X509Extension> getExtensionsAsMap()
Map of X509Extension, or null if no extensions are defined.public java.util.Enumeration<oracle.security.crypto.asn1.ASN1ObjectID> extensionTypes()
getExtensionsAsMap()Enumeration of ASN1ObjectID, or null if no extensions are defined.public X509Extension getExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
type - the OID for the type of extensionnull if it is not present.public javax.security.auth.x500.X500Principal getCertificateIssuer()
getCertificateIssuer in class java.security.cert.X509CRLEntry
public byte[] getEncoded()
throws java.security.cert.CRLException
getEncoded in class java.security.cert.X509CRLEntryjava.security.cert.CRLExceptionpublic java.math.BigInteger getSerialNumber()
getSerialNumber in class java.security.cert.X509CRLEntrypublic boolean hasExtensions()
hasExtensions in class java.security.cert.X509CRLEntrypublic java.util.Set<java.lang.String> getCriticalExtensionOIDs()
getCriticalExtensionOIDs in interface java.security.cert.X509Extensionpublic byte[] getExtensionValue(java.lang.String oid)
getExtensionValue in interface java.security.cert.X509Extensionpublic java.util.Set<java.lang.String> getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs in interface java.security.cert.X509Extensionpublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension in interface java.security.cert.X509Extensionpublic java.lang.String toString()
RevokedCertificate object.toString in class java.security.cert.X509CRLEntry
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamable
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException