Class BcContentVerifierProviderBuilder

    • Constructor Detail

      • BcContentVerifierProviderBuilder

        public BcContentVerifierProviderBuilder()
    • Method Detail

      • extractKeyParameters

        protected abstract org.bouncycastle.crypto.params.AsymmetricKeyParameter extractKeyParameters​(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
                                                                                               throws java.io.IOException
        Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
        Parameters:
        publicKeyInfo - a publicKeyInfo structure describing the public key required.
        Returns:
        an AsymmetricKeyParameter object containing the appropriate public key.
        Throws:
        java.io.IOException - if the publicKeyInfo data cannot be parsed,
      • createSigner

        protected abstract org.bouncycastle.crypto.Signer createSigner​(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId)
                                                                throws OperatorCreationException
        Create the correct signer for the algorithm identifier sigAlgId.
        Parameters:
        sigAlgId - the algorithm details for the signature we want to verify.
        Returns:
        a Signer object.
        Throws:
        OperatorCreationException - if the Signer cannot be constructed.