public abstract class

BcContentVerifierProviderBuilder

extends Object
java.lang.Object
   ↳ org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder
Known Direct Subclasses

Summary

Public Constructors
BcContentVerifierProviderBuilder()
Public Methods
ContentVerifierProvider build(AsymmetricKeyParameter publicKey)
ContentVerifierProvider build(X509CertificateHolder certHolder)
Protected Methods
abstract Signer createSigner(AlgorithmIdentifier sigAlgId)
Create the correct signer for the algorithm identifier sigAlgId.
abstract AsymmetricKeyParameter extractKeyParameters(SubjectPublicKeyInfo publicKeyInfo)
Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BcContentVerifierProviderBuilder ()

Public Methods

public ContentVerifierProvider build (AsymmetricKeyParameter publicKey)

Protected Methods

protected abstract Signer createSigner (AlgorithmIdentifier sigAlgId)

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.

protected abstract AsymmetricKeyParameter extractKeyParameters (SubjectPublicKeyInfo publicKeyInfo)

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
IOException if the publicKeyInfo data cannot be parsed,