net.ripe.rpki.commons.crypto.crl
Class X509Crl

java.lang.Object
  extended by 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
static class X509Crl.Entry
           
static class X509Crl.X509CRLEntryComparator
           
 
Constructor Summary
X509Crl(byte[] encoded)
           
X509Crl(X509CRL crl)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getAuthorityKeyIdentifier()
           
 X509CRL getCrl()
           
 URI getCrlUri()
           
 byte[] getEncoded()
           
 X500Principal getIssuer()
           
 org.joda.time.DateTime getNextUpdateTime()
           
 BigInteger getNumber()
           
 URI getParentCertificateUri()
          This method is required by the interface, but should never be called on X509Crl objects..
 X509Crl.Entry getRevokedCertificate(BigInteger serialNumber)
           
 SortedSet<X509Crl.Entry> getRevokedCertificates()
           
 String getSigAlgName()
           
 org.joda.time.DateTime getThisUpdateTime()
           
 int getVersion()
           
 int hashCode()
           
 boolean isPastValidityTime()
           
 boolean isRevoked()
           
 boolean isRevoked(X509Certificate certificate)
           
static X509Crl parseDerEncoded(byte[] encoded, ValidationResult validationResult)
           
 void validate(String location, CertificateRepositoryObjectValidationContext context, CrlLocator crlLocator, ValidationOptions options, ValidationResult result)
           
 void verify(PublicKey publicKey)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509Crl

public X509Crl(byte[] encoded)

X509Crl

public X509Crl(X509CRL crl)
Method Detail

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

isPastValidityTime

public boolean isPastValidityTime()
Specified by:
isPastValidityTime in interface CertificateRepositoryObject

isRevoked

public boolean isRevoked()
Specified by:
isRevoked 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-2015 RIPE NCC, the Netherlands. All Rights Reserved.