For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki
Class X509CRLImpl

java.lang.Object
  extended byjava.security.cert.CRL
      extended byjava.security.cert.X509CRL
          extended bygnu.crypto.pki.X509CRLImpl
All Implemented Interfaces:
GnuPKIExtension, X509Extension

public class X509CRLImpl
extends X509CRL
implements GnuPKIExtension

X.509 certificate revocation lists.

Author:
Casey Marshall (rsdio@metastatic.org)

Constructor Summary
X509CRLImpl(InputStream encoded)
          Create a new X.509 CRL.
 
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)
           
 Principal getIssuerDN()
           
 X500Principal getIssuerX500Principal()
           
 Date getNextUpdate()
           
 Set getNonCriticalExtensionOIDs()
           
 X509CRLEntry getRevokedCertificate(BigInteger serialNo)
           
 Set getRevokedCertificates()
           
 String getSigAlgName()
           
 String getSigAlgOID()
           
 byte[] getSigAlgParams()
           
 byte[] getSignature()
           
 byte[] getTBSCertList()
           
 Date getThisUpdate()
           
 int getVersion()
           
 int hashCode()
           
 boolean hasUnsupportedCriticalExtension()
           
 boolean isRevoked(Certificate cert)
           
 String toString()
           
 void verify(PublicKey key)
           
 void verify(PublicKey key, String provider)
           
 
Methods inherited from class java.security.cert.CRL
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X509CRLImpl

public X509CRLImpl(InputStream encoded)
            throws CRLException,
                   IOException
Create a new X.509 CRL.

Parameters:
encoded - The DER encoded CRL.
Throws:
CRLException - If the input bytes are incorrect.
IOException - If the input bytes cannot be read.
Method Detail

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getEncoded

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

verify

public void verify(PublicKey key)
            throws CRLException,
                   NoSuchAlgorithmException,
                   InvalidKeyException,
                   NoSuchProviderException,
                   SignatureException
Throws:
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException

verify

public void verify(PublicKey key,
                   String provider)
            throws CRLException,
                   NoSuchAlgorithmException,
                   InvalidKeyException,
                   NoSuchProviderException,
                   SignatureException
Throws:
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException

getVersion

public int getVersion()

getIssuerDN

public Principal getIssuerDN()

getIssuerX500Principal

public X500Principal getIssuerX500Principal()

getThisUpdate

public Date getThisUpdate()

getNextUpdate

public Date getNextUpdate()

getRevokedCertificate

public X509CRLEntry getRevokedCertificate(BigInteger serialNo)

getRevokedCertificates

public Set getRevokedCertificates()

getTBSCertList

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

getSignature

public byte[] getSignature()

getSigAlgName

public String getSigAlgName()

getSigAlgOID

public String getSigAlgOID()

getSigAlgParams

public byte[] getSigAlgParams()

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

toString

public String toString()

isRevoked

public boolean isRevoked(Certificate cert)

For the latest news and information visit
The GNU Crypto project

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