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)
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)
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.