net.ripe.rpki.commons.crypto.x509cert
Class X509CertificateParser<T extends AbstractX509CertificateWrapper>

java.lang.Object
  extended by net.ripe.rpki.commons.crypto.x509cert.X509CertificateParser<T>
Direct Known Subclasses:
ProvisioningCmsCertificateParser, ProvisioningIdentityCertificateParser, X509ResourceCertificateParser

public abstract class X509CertificateParser<T extends AbstractX509CertificateWrapper>
extends Object


Field Summary
protected  X509Certificate certificate
           
protected  ValidationResult result
           
 
Constructor Summary
protected X509CertificateParser(ValidationResult result)
           
 
Method Summary
protected  void doTypeSpecificValidation()
           
abstract  T getCertificate()
           
 ValidationResult getValidationResult()
           
protected  X509Certificate getX509Certificate()
           
protected  boolean isResourceExtensionPresent()
           
 boolean isSuccess()
           
 void parse(String location, byte[] encoded)
           
 void parse(ValidationLocation location, byte[] encoded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

certificate

protected X509Certificate certificate

result

protected ValidationResult result
Constructor Detail

X509CertificateParser

protected X509CertificateParser(ValidationResult result)
Method Detail

parse

public void parse(String location,
                  byte[] encoded)

parse

public void parse(ValidationLocation location,
                  byte[] encoded)

doTypeSpecificValidation

protected void doTypeSpecificValidation()

getValidationResult

public ValidationResult getValidationResult()

isSuccess

public boolean isSuccess()

getCertificate

public abstract T getCertificate()

getX509Certificate

protected X509Certificate getX509Certificate()

isResourceExtensionPresent

protected boolean isResourceExtensionPresent()


Copyright © 2008-2013 RIPE NCC, the Netherlands. All Rights Reserved.