Class BouncyCastleUtil


  • public final class BouncyCastleUtil
    extends Object
    • 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)
      • 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
      • 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