Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classX509Crl.Entrystatic classX509Crl.X509CRLEntryComparator
-
Method Summary
-
-
-
Constructor Detail
-
X509Crl
public X509Crl(byte[] encoded)
-
X509Crl
public X509Crl(X509CRL crl)
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfaceCertificateRepositoryObject
-
getCrl
public X509CRL getCrl()
-
parseDerEncoded
public static X509Crl parseDerEncoded(byte[] encoded, ValidationResult validationResult)
-
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:
validatein interfaceCertificateRepositoryObject
-
validate
public void validate(String location, CertificateRepositoryObjectValidationContext context, X509Crl crl, URI crlUri, ValidationOptions options, ValidationResult result)
- Specified by:
validatein interfaceCertificateRepositoryObject
-
isPastValidityTime
public boolean isPastValidityTime()
- Specified by:
isPastValidityTimein interfaceCertificateRepositoryObject
-
isRevoked
public boolean isRevoked()
- Specified by:
isRevokedin interfaceCertificateRepositoryObject
-
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:
getCrlUriin interfaceCertificateRepositoryObject
-
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:
getParentCertificateUriin interfaceCertificateRepositoryObject
-
verify
public void verify(PublicKey publicKey) throws SignatureException
- Throws:
SignatureException
-
isRevoked
public boolean isRevoked(X509Certificate certificate)
-
-