gnu.crypto.pki
Class X509CRLImpl
java.lang.Object
java.security.cert.CRL
java.security.cert.X509CRL
gnu.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)
Methods inherited from class java.security.cert.CRL |
getType |
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.
equals
public boolean equals(Object o)
- Overrides:
equals
in class X509CRL
hashCode
public int hashCode()
- Overrides:
hashCode
in class X509CRL
getEncoded
public byte[] getEncoded()
throws CRLException
- Specified by:
getEncoded
in class X509CRL
- Throws:
CRLException
verify
public void verify(PublicKey key)
throws CRLException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException
- Specified by:
verify
in class X509CRL
- Throws:
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
verify
public void verify(PublicKey key,
String provider)
throws CRLException,
NoSuchAlgorithmException,
InvalidKeyException,
NoSuchProviderException,
SignatureException
- Specified by:
verify
in class X509CRL
- Throws:
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
getVersion
public int getVersion()
- Specified by:
getVersion
in class X509CRL
getIssuerDN
public Principal getIssuerDN()
- Specified by:
getIssuerDN
in class X509CRL
getIssuerX500Principal
public X500Principal getIssuerX500Principal()
- Overrides:
getIssuerX500Principal
in class X509CRL
getThisUpdate
public Date getThisUpdate()
- Specified by:
getThisUpdate
in class X509CRL
getNextUpdate
public Date getNextUpdate()
- Specified by:
getNextUpdate
in class X509CRL
getRevokedCertificate
public X509CRLEntry getRevokedCertificate(BigInteger serialNo)
- Specified by:
getRevokedCertificate
in class X509CRL
getRevokedCertificates
public Set getRevokedCertificates()
- Specified by:
getRevokedCertificates
in class X509CRL
getTBSCertList
public byte[] getTBSCertList()
throws CRLException
- Specified by:
getTBSCertList
in class X509CRL
- Throws:
CRLException
getSignature
public byte[] getSignature()
- Specified by:
getSignature
in class X509CRL
getSigAlgName
public String getSigAlgName()
- Specified by:
getSigAlgName
in class X509CRL
getSigAlgOID
public String getSigAlgOID()
- Specified by:
getSigAlgOID
in class X509CRL
getSigAlgParams
public byte[] getSigAlgParams()
- Specified by:
getSigAlgParams
in class X509CRL
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()
- Specified by:
toString
in class CRL
isRevoked
public boolean isRevoked(Certificate cert)
- Specified by:
isRevoked
in class CRL
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.