net.ripe.rpki.commons.crypto.util
Class BouncyCastleUtil

java.lang.Object
  extended by net.ripe.rpki.commons.crypto.util.BouncyCastleUtil

public final class BouncyCastleUtil
extends Object


Nested Class Summary
static class BouncyCastleUtil.X509CertificateHolderStoreSelector
           
static class BouncyCastleUtil.X509CRLHolderStoreSelector
           
 
Field Summary
static org.bouncycastle.operator.DigestCalculatorProvider DIGEST_CALCULATOR_PROVIDER
           
 
Method Summary
static org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey publicKey)
           
static org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyIdentifier(PublicKey publicKey)
           
static org.bouncycastle.asn1.x509.SubjectPublicKeyInfo createSubjectPublicKeyInfo(PublicKey key)
           
static List<? extends X509Certificate> extractCertificates(org.bouncycastle.cms.CMSSignedDataParser signedDataParser)
           
static List<? extends X509CRL> extractCrls(org.bouncycastle.cms.CMSSignedDataParser signedDataParser)
           
static X509Certificate holderToCertificate(org.bouncycastle.cert.X509CertificateHolder holder)
           
static X509CRL holderToCrl(org.bouncycastle.cert.X509CRLHolder holder)
           
static org.bouncycastle.asn1.x500.X500Name principalToName(X500Principal dn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIGEST_CALCULATOR_PROVIDER

public static final org.bouncycastle.operator.DigestCalculatorProvider DIGEST_CALCULATOR_PROVIDER
Method Detail

createAuthorityKeyIdentifier

public static org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(PublicKey publicKey)

createSubjectKeyIdentifier

public static org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyIdentifier(PublicKey publicKey)

principalToName

public static org.bouncycastle.asn1.x500.X500Name principalToName(X500Principal dn)

createSubjectPublicKeyInfo

public static org.bouncycastle.asn1.x509.SubjectPublicKeyInfo createSubjectPublicKeyInfo(PublicKey key)

holderToCertificate

public static X509Certificate holderToCertificate(org.bouncycastle.cert.X509CertificateHolder holder)
                                           throws CertificateException
Throws:
CertificateException

extractCertificates

public static List<? extends X509Certificate> extractCertificates(org.bouncycastle.cms.CMSSignedDataParser signedDataParser)
                                                           throws org.bouncycastle.util.StoreException,
                                                                  org.bouncycastle.cms.CMSException,
                                                                  CertificateException
Throws:
org.bouncycastle.util.StoreException
org.bouncycastle.cms.CMSException
CertificateException

holderToCrl

public static X509CRL holderToCrl(org.bouncycastle.cert.X509CRLHolder holder)
                           throws CRLException
Throws:
CRLException

extractCrls

public static List<? extends X509CRL> extractCrls(org.bouncycastle.cms.CMSSignedDataParser signedDataParser)
                                           throws org.bouncycastle.util.StoreException,
                                                  org.bouncycastle.cms.CMSException,
                                                  CRLException
Throws:
org.bouncycastle.util.StoreException
org.bouncycastle.cms.CMSException
CRLException


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