gnu.crypto.pki

Class X509CRLImpl

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.
byte[]
getExtensionValue(String oid)
Collection
getExtensions()
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()
boolean
hasUnsupportedCriticalExtension()
int
hashCode()
boolean
isRevoked(Certificate cert)
String
toString()
void
verify(PublicKey key)
void
verify(PublicKey key, String provider)

Constructor Details

X509CRLImpl

public X509CRLImpl(InputStream encoded)
            throws CRLException,
                   IOException
Create a new X.509 CRL.
Parameters:
encoded - The DER encoded CRL.

Method Details

equals

public boolean equals(Object o)

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()

getEncoded

public byte[] getEncoded()
            throws CRLException

getExtension

public Extension getExtension(OID oid)
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.

getExtensionValue

public byte[] getExtensionValue(String oid)

getExtensions

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

getIssuerDN

public Principal getIssuerDN()

getIssuerX500Principal

public X500Principal getIssuerX500Principal()

getNextUpdate

public Date getNextUpdate()

getNonCriticalExtensionOIDs

public Set getNonCriticalExtensionOIDs()

getRevokedCertificate

public X509CRLEntry getRevokedCertificate(BigInteger serialNo)

getRevokedCertificates

public Set getRevokedCertificates()

getSigAlgName

public String getSigAlgName()

getSigAlgOID

public String getSigAlgOID()

getSigAlgParams

public byte[] getSigAlgParams()

getSignature

public byte[] getSignature()

getTBSCertList

public byte[] getTBSCertList()
            throws CRLException

getThisUpdate

public Date getThisUpdate()

getVersion

public int getVersion()

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()

hashCode

public int hashCode()

isRevoked

public boolean isRevoked(Certificate cert)

toString

public String toString()

verify

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

verify

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

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