For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki
Class X509CRLEntryImpl

java.lang.Object
  extended byjava.security.cert.X509CRLEntry
      extended bygnu.crypto.pki.X509CRLEntryImpl
All Implemented Interfaces:
GnuPKIExtension, X509Extension

class X509CRLEntryImpl
extends X509CRLEntry
implements GnuPKIExtension

A single entry in a X.509 certificate revocation list.

Author:
Casey Marshall
See Also:
X509CRL

Constructor Summary
(package private) X509CRLEntryImpl(int version, DERReader encoded)
          Create a new X.509 certificate revocation list entry from the given input stream and CRL version number.
 
Method Summary
 boolean equals(Object o)
           
 Set getCriticalExtensionOIDs()
           
 byte[] getEncoded()
           
 Extension getExtension(OID oid)
          Returns the extension object for the given object identifier.
 Collection getExtensions()
           
 byte[] getExtensionValue(String oid)
           
 Set getNonCriticalExtensionOIDs()
           
 Date getRevocationDate()
           
 BigInteger getSerialNumber()
           
 boolean hasExtensions()
           
 int hashCode()
           
 boolean hasUnsupportedCriticalExtension()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X509CRLEntryImpl

X509CRLEntryImpl(int version,
                 DERReader encoded)
           throws CRLException,
                  IOException
Create a new X.509 certificate revocation list entry from the given input stream and CRL version number.

Parameters:
version - The CRL version.
encoded - The stream of DER bytes.
Throws:
CRLException - If the ASN.1 structure is invalid.
IOException - If the bytes cannot be read.
Method Detail

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getEncoded

public byte[] getEncoded()
                  throws CRLException
Throws:
CRLException

getSerialNumber

public BigInteger getSerialNumber()

getRevocationDate

public Date getRevocationDate()

hasExtensions

public boolean hasExtensions()

toString

public String toString()

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()
Specified by:
hasUnsupportedCriticalExtension in interface X509Extension

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()
Specified by:
getCriticalExtensionOIDs in interface X509Extension

getNonCriticalExtensionOIDs

public Set getNonCriticalExtensionOIDs()
Specified by:
getNonCriticalExtensionOIDs in interface X509Extension

getExtensionValue

public byte[] getExtensionValue(String oid)
Specified by:
getExtensionValue in interface X509Extension

getExtension

public Extension getExtension(OID oid)
Description copied from interface: GnuPKIExtension
Returns the extension object for the given object identifier.

Specified by:
getExtension in interface GnuPKIExtension
Parameters:
oid - The OID of the extension to get.
Returns:
The extension, or null if there is no such extension.

getExtensions

public Collection getExtensions()
Specified by:
getExtensions in interface GnuPKIExtension

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.