public class X509CRLObject extends X509CRL
Constructor and Description |
---|
X509CRLObject(CertificateList c) |
Modifier and Type | Method and Description |
---|---|
Set |
getCriticalExtensionOIDs() |
byte[] |
getEncoded() |
byte[] |
getExtensionValue(String oid) |
Principal |
getIssuerDN() |
X500Principal |
getIssuerX500Principal() |
Date |
getNextUpdate() |
Set |
getNonCriticalExtensionOIDs() |
X509CRLEntry |
getRevokedCertificate(BigInteger serialNumber) |
Set |
getRevokedCertificates() |
String |
getSigAlgName() |
String |
getSigAlgOID() |
byte[] |
getSigAlgParams() |
byte[] |
getSignature() |
byte[] |
getTBSCertList() |
Date |
getThisUpdate() |
int |
getVersion() |
boolean |
hasUnsupportedCriticalExtension()
Will return true if any extensions are present and marked
as critical as we currently dont handle any extensions!
|
boolean |
isRevoked(Certificate cert)
Checks whether the given certificate is on this CRL.
|
String |
toString()
Returns a string representation of this CRL.
|
void |
verify(PublicKey key) |
void |
verify(PublicKey key,
String sigProvider) |
equals, getRevokedCertificate, hashCode, verify
public X509CRLObject(CertificateList c) throws CRLException
CRLException
public boolean hasUnsupportedCriticalExtension()
public Set getCriticalExtensionOIDs()
public Set getNonCriticalExtensionOIDs()
public byte[] getExtensionValue(String oid)
public byte[] getEncoded() throws CRLException
getEncoded
in class X509CRL
CRLException
public void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in class X509CRL
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in class X509CRL
CRLException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public int getVersion()
getVersion
in class X509CRL
public Principal getIssuerDN()
getIssuerDN
in class X509CRL
public X500Principal getIssuerX500Principal()
getIssuerX500Principal
in class X509CRL
public Date getThisUpdate()
getThisUpdate
in class X509CRL
public Date getNextUpdate()
getNextUpdate
in class X509CRL
public X509CRLEntry getRevokedCertificate(BigInteger serialNumber)
getRevokedCertificate
in class X509CRL
public Set getRevokedCertificates()
getRevokedCertificates
in class X509CRL
public byte[] getTBSCertList() throws CRLException
getTBSCertList
in class X509CRL
CRLException
public byte[] getSignature()
getSignature
in class X509CRL
public String getSigAlgName()
getSigAlgName
in class X509CRL
public String getSigAlgOID()
getSigAlgOID
in class X509CRL
public byte[] getSigAlgParams()
getSigAlgParams
in class X509CRL
public String toString()
public boolean isRevoked(Certificate cert)
Copyright © 2015. All rights reserved.