org.apache.geronimo.util.jce.provider
Class X509CRLObject
java.lang.Object
java.security.cert.CRL
java.security.cert.X509CRL
org.apache.geronimo.util.jce.provider.X509CRLObject
- All Implemented Interfaces:
- X509Extension
- public class X509CRLObject
- extends X509CRL
The following extensions are listed in RFC 2459 as relevant to CRLs
Authority Key Identifier
Issuer Alternative Name
CRL Number
Delta CRL Indicator (critical)
Issuing Distribution Point (critical)
Methods inherited from class java.security.cert.CRL |
getType |
X509CRLObject
public X509CRLObject(CertificateList c)
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
- Will return true if any extensions are present and marked
as critical as we currently dont handle any extensions!
getCriticalExtensionOIDs
public Set getCriticalExtensionOIDs()
getNonCriticalExtensionOIDs
public Set getNonCriticalExtensionOIDs()
getExtensionValue
public byte[] getExtensionValue(String oid)
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 sigProvider)
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 serialNumber)
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()
toString
public String toString()
- Returns a string representation of this CRL.
- Returns:
- a string representation of this CRL.
isRevoked
public boolean isRevoked(Certificate cert)
- Checks whether the given certificate is on this CRL.
- Parameters:
cert
- the certificate to check for.
- Returns:
- true if the given certificate is on this CRL,
false otherwise.
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.