Skip navigation links

Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10674-03


oracle.security.crypto.cert
Class RevokedCertificate

java.lang.Object
  extended by java.security.cert.X509CRLEntry
      extended by oracle.security.crypto.cert.RevokedCertificate

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.security.cert.X509Extension, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class RevokedCertificate
extends java.security.cert.X509CRLEntry
implements oracle.security.crypto.asn1.ASN1Object, java.io.Externalizable

This class represents a revoked certificate, that is, an entry in an X.509 CRL.

A revoked certificate consists of a serial number, a revocation date, and optionally a set of CRL entry extensions.

See Also:
CRL, Serialized Form

Constructor Summary
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. Use RevokedCertificate(BigInteger, Date, List)
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)
           

 

Method Summary
 void addExtension(X509Extension ext)
           
 java.util.Enumeration<oracle.security.crypto.asn1.ASN1ObjectID> extensionTypes()
          Deprecated. Use getExtensionsAsMap()
 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. Use getExtensionsAsList()
 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)
           

 

Methods inherited from class java.security.cert.X509CRLEntry
equals, hashCode

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

RevokedCertificate

public RevokedCertificate()
Creates a new empty instance. This constructor is to be used with serialization or with the input method.

RevokedCertificate

public RevokedCertificate(java.math.BigInteger sn,
                          java.util.Date rd)
Creates a new revoked certificate, with the given serial number, revocation date.
Parameters:
sn - the serial number
rd - the revocation date

RevokedCertificate

public 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.
Parameters:
sn - the serial number
rd - the revocation date
exts - the set of extensions

RevokedCertificate

public RevokedCertificate(java.math.BigInteger sn,
                          java.util.Date rd,
                          java.util.Vector<X509Extension> exts)
Deprecated. Use RevokedCertificate(BigInteger, Date, List)
Creates a new revoked certificate, with the given serial number, revocation date, and set of extensions.
Parameters:
sn - the serial number
rd - the revocation date
exts - the set of extension - each element must be an instance of X509Extension.

RevokedCertificate

public 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.
Parameters:
sn - the serial number
rd - the revocation date
exts - the set of extension - each element must be an instance of X509Extension.

RevokedCertificate

public RevokedCertificate(java.io.InputStream is)
                   throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getSerialNo

public java.math.BigInteger getSerialNo()
Returns the serial number of the certificate which was revoked.
Returns:
the serial number

getRevocationDate

public java.util.Date getRevocationDate()
Returns the date on which the certificate was revoked.
Specified by:
getRevocationDate in class java.security.cert.X509CRLEntry
Returns:
the revocation date

addExtension

public void addExtension(X509Extension ext)

getExtensionSet

public X509ExtensionSet getExtensionSet()
Returns the CRL entry extensions for this revoked certificate.
Returns:
the CRL entry extensions

getExtensions

public java.util.Vector<X509Extension> getExtensions()
Deprecated. Use getExtensionsAsList()
Returns a vector of the CRL entry extensions for this revoked certificate.
Returns:
a Vector of X509Extension, or null if no extensions are defined.

getExtensionsAsList

public java.util.ArrayList<X509Extension> getExtensionsAsList()
Returns a vector of the CRL entry extensions for this revoked certificate.
Returns:
a Vector of X509Extension, or null if no extensions are defined.

getExtensionsAsMap

public java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,X509Extension> getExtensionsAsMap()
Returns a vector of the CRL entry extensions for this revoked certificate.
Returns:
a Map of X509Extension, or null if no extensions are defined.

extensionTypes

public java.util.Enumeration<oracle.security.crypto.asn1.ASN1ObjectID> extensionTypes()
Deprecated. Use getExtensionsAsMap()
Returns an enumeration of the this revoked certificate's extension types.
Returns:
an Enumeration of ASN1ObjectID, or null if no extensions are defined.

getExtension

public X509Extension getExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
Returns the extension with the specified OID.
Parameters:
type - the OID for the type of extension
Returns:
the extension with the specified OID, or null if it is not present.

getCertificateIssuer

public javax.security.auth.x500.X500Principal getCertificateIssuer()
Overrides:
getCertificateIssuer in class java.security.cert.X509CRLEntry

getEncoded

public byte[] getEncoded()
                  throws java.security.cert.CRLException
Specified by:
getEncoded in class java.security.cert.X509CRLEntry
Throws:
java.security.cert.CRLException

getSerialNumber

public java.math.BigInteger getSerialNumber()
Specified by:
getSerialNumber in class java.security.cert.X509CRLEntry

hasExtensions

public boolean hasExtensions()
Specified by:
hasExtensions in class java.security.cert.X509CRLEntry

getCriticalExtensionOIDs

public java.util.Set<java.lang.String> getCriticalExtensionOIDs()
Specified by:
getCriticalExtensionOIDs in interface java.security.cert.X509Extension

getExtensionValue

public byte[] getExtensionValue(java.lang.String oid)
Specified by:
getExtensionValue in interface java.security.cert.X509Extension

getNonCriticalExtensionOIDs

public java.util.Set<java.lang.String> getNonCriticalExtensionOIDs()
Specified by:
getNonCriticalExtensionOIDs in interface java.security.cert.X509Extension

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()
Specified by:
hasUnsupportedCriticalExtension in interface java.security.cert.X509Extension

toString

public java.lang.String toString()
Returns a string representation of this RevokedCertificate object.
Specified by:
toString in class java.security.cert.X509CRLEntry
Returns:
the string representation

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

writeExternal

public void writeExternal(java.io.ObjectOutput os)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput is)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10674-03


Copyright © 2005, 2011 , Oracle. All rights reserved.