java.security.cert
public abstract class X509CRL extends CRL implements X509Extension
Modifier | Constructor and Description |
---|---|
protected |
X509CRL()
Constructs a new X509CRL.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compares this X509CRL to other.
|
abstract byte[] |
getEncoded()
Gets the DER ASN.1 encoded format for this X.509 CRL.
|
abstract Principal |
getIssuerDN()
Returns the issuer (issuer distinguished name) of the CRL.
|
X500Principal |
getIssuerX500Principal()
Returns the X.500 distinguished name of this CRL's issuer.
|
abstract Date |
getNextUpdate() |
abstract X509CRLEntry |
getRevokedCertificate(BigInteger serialNumber)
Gets the requeste dX509Entry for the specified
certificate serial number.
|
abstract Set<? extends X509CRLEntry> |
getRevokedCertificates()
Returns a Set of revoked certificates.
|
abstract String |
getSigAlgName()
Returns the signature algorithm used to sign the CRL.
|
abstract String |
getSigAlgOID()
Returns the OID for the signature algorithm used.
|
abstract byte[] |
getSigAlgParams()
Returns the AlgorithmParameters in the encoded form
for the signature algorithm used.
|
abstract byte[] |
getSignature()
Returns the signature for the CRL.
|
abstract byte[] |
getTBSCertList()
Returns the DER ASN.1 encoded tbsCertList which is
the basic information of the list and associated certificates
in the encoded state.
|
abstract Date |
getThisUpdate()
Returns the thisUpdate date of the CRL.
|
abstract int |
getVersion()
Gets the version of this CRL.
|
int |
hashCode()
Returns a hash code for this X509CRL in its encoded
form.
|
abstract void |
verify(PublicKey key)
Verifies that this CRL was properly signed with the
PublicKey that corresponds to its private key.
|
abstract void |
verify(PublicKey key,
String sigProvider)
Verifies that this CRL was properly signed with the
PublicKey that corresponds to its private key and uses
the signature engine provided by the provider.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
protected X509CRL()
public boolean equals(Object other)
equals
in class Object
other
- An Object to test for equalityObject.hashCode()
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public abstract byte[] getEncoded() throws CRLException
CRLException
- if an error occurspublic abstract void verify(PublicKey key) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
key
- PublicKey to verify withCRLException
- encoding errorNoSuchAlgorithmException
- unsupported algorithmInvalidKeyException
- incorrect keyNoSuchProviderException
- no providerSignatureException
- signature errorpublic abstract void verify(PublicKey key, String sigProvider) throws CRLException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
key
- PublicKey to verify withsigProvider
- Provider to use for signature algorithmCRLException
- encoding errorNoSuchAlgorithmException
- unsupported algorithmInvalidKeyException
- incorrect keyNoSuchProviderException
- incorrect providerSignatureException
- signature errorpublic abstract int getVersion()
public abstract Principal getIssuerDN()
public abstract Date getThisUpdate()
public abstract Date getNextUpdate()
public abstract X509CRLEntry getRevokedCertificate(BigInteger serialNumber)
public abstract Set<? extends X509CRLEntry> getRevokedCertificates()
public abstract byte[] getTBSCertList() throws CRLException
CRLException
public abstract byte[] getSignature()
public abstract String getSigAlgName()
public abstract String getSigAlgOID()
public abstract byte[] getSigAlgParams()
public X500Principal getIssuerX500Principal()