Class BouncyCastleUtil
- java.lang.Object
-
- net.ripe.rpki.commons.crypto.util.BouncyCastleUtil
-
public final class BouncyCastleUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBouncyCastleUtil.X509CertificateHolderStoreSelectorstatic classBouncyCastleUtil.X509CRLHolderStoreSelector
-
Field Summary
Fields Modifier and Type Field Description static org.bouncycastle.operator.DigestCalculatorProviderDIGEST_CALCULATOR_PROVIDER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bouncycastle.asn1.x509.AuthorityKeyIdentifiercreateAuthorityKeyIdentifier(PublicKey publicKey)static org.bouncycastle.asn1.x509.SubjectKeyIdentifiercreateSubjectKeyIdentifier(PublicKey publicKey)static org.bouncycastle.asn1.x509.SubjectPublicKeyInfocreateSubjectPublicKeyInfo(PublicKey key)static List<? extends X509Certificate>extractCertificates(org.bouncycastle.cms.CMSSignedDataParser signedDataParser)static List<? extends X509CRL>extractCrls(org.bouncycastle.cms.CMSSignedDataParser signedDataParser)static X509CertificateholderToCertificate(org.bouncycastle.cert.X509CertificateHolder holder)static X509CRLholderToCrl(org.bouncycastle.cert.X509CRLHolder holder)static org.bouncycastle.asn1.x500.X500NameprincipalToName(X500Principal dn)
-
-
-
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.StoreExceptionorg.bouncycastle.cms.CMSExceptionCertificateException
-
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.StoreExceptionorg.bouncycastle.cms.CMSExceptionCRLException
-
-