net.ripe.rpki.commons.crypto.crl
Class X509Crl
java.lang.Object
net.ripe.rpki.commons.crypto.crl.X509Crl
- All Implemented Interfaces:
- Serializable, CertificateRepositoryObject
public class X509Crl
- extends Object
- implements CertificateRepositoryObject
- See Also:
- Serialized Form
X509Crl
public X509Crl(byte[] encoded)
X509Crl
public X509Crl(X509CRL crl)
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded in interface CertificateRepositoryObject
getCrl
public X509CRL getCrl()
parseDerEncoded
public static X509Crl parseDerEncoded(byte[] encoded,
ValidationResult validationResult)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getAuthorityKeyIdentifier
public byte[] getAuthorityKeyIdentifier()
getThisUpdateTime
public org.joda.time.DateTime getThisUpdateTime()
getNextUpdateTime
public org.joda.time.DateTime getNextUpdateTime()
getIssuer
public X500Principal getIssuer()
validate
public void validate(String location,
CertificateRepositoryObjectValidationContext context,
CrlLocator crlLocator,
ValidationOptions options,
ValidationResult result)
- Specified by:
validate in interface CertificateRepositoryObject
getVersion
public int getVersion()
getSigAlgName
public String getSigAlgName()
getRevokedCertificates
public SortedSet<X509Crl.Entry> getRevokedCertificates()
getRevokedCertificate
public X509Crl.Entry getRevokedCertificate(BigInteger serialNumber)
getNumber
public BigInteger getNumber()
getCrlUri
public URI getCrlUri()
- Specified by:
getCrlUri in interface CertificateRepositoryObject
getParentCertificateUri
public URI getParentCertificateUri()
- This method is required by the interface, but should never be called
on X509Crl objects.. it's pointless. They don't have an AIA.
- Specified by:
getParentCertificateUri in interface CertificateRepositoryObject
verify
public void verify(PublicKey publicKey)
throws SignatureException
- Throws:
SignatureException
isRevoked
public boolean isRevoked(X509Certificate certificate)
Copyright © 2008-2014 RIPE NCC, the Netherlands. All Rights Reserved.