gnu.crypto.pki
Class X509CRLEntryImpl
java.lang.Object
java.security.cert.X509CRLEntry
gnu.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 |
X509CRLEntryImpl(int version,
DERReader encoded)
Create a new X.509 certificate revocation list entry from the given
input stream and CRL version number. |
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.
equals
public boolean equals(Object o)
- Overrides:
equals
in class X509CRLEntry
hashCode
public int hashCode()
- Overrides:
hashCode
in class X509CRLEntry
getEncoded
public byte[] getEncoded()
throws CRLException
- Specified by:
getEncoded
in class X509CRLEntry
- Throws:
CRLException
getSerialNumber
public BigInteger getSerialNumber()
- Specified by:
getSerialNumber
in class X509CRLEntry
getRevocationDate
public Date getRevocationDate()
- Specified by:
getRevocationDate
in class X509CRLEntry
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensions
in class X509CRLEntry
toString
public String toString()
- Specified by:
toString
in class X509CRLEntry
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
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.