Top Fields Constructors Methods
org.bouncycastle.operator.bc

public Class BcRSAContentVerifierProviderBuilder

extends BcContentVerifierProviderBuilder
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.crypto.Digest, .Signer, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.crypto.signers.RSADigestSigner, org.bouncycastle.crypto.util.PublicKeyFactory, org.bouncycastle.operator.DigestAlgorithmIdentifierFinder, .OperatorCreationException

Field Summary

Modifier and TypeField and Description
private DigestAlgorithmIdentifierFinder
Inherited from org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder:
digestProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Signer
createSigner(AlgorithmIdentifier
the algorithm details for the signature we want to verify.
sigAlgId
)

Implements abstract org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder.createSigner.

Create the correct signer for the algorithm identifier sigAlgId.
protected AsymmetricKeyParameter
extractKeyParameters(SubjectPublicKeyInfo
a publicKeyInfo structure describing the public key required.
publicKeyInfo
)

Implements abstract org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder.extractKeyParameters.

Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
Inherited from org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder:
buildbuild

Field Detail

digestAlgorithmFinderback to summary
private DigestAlgorithmIdentifierFinder digestAlgorithmFinder

Constructor Detail

BcRSAContentVerifierProviderBuilderback to summary
public BcRSAContentVerifierProviderBuilder(DigestAlgorithmIdentifierFinder digestAlgorithmFinder)

Method Detail

createSignerback to summary
protected Signer createSigner(AlgorithmIdentifier sigAlgId) throws OperatorCreationException

Implements abstract org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder.createSigner.

Doc from org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder.createSigner.

Create the correct signer for the algorithm identifier sigAlgId.

Parameters
sigAlgId:AlgorithmIdentifier

the algorithm details for the signature we want to verify.

Returns:Signer

a Signer object.

Exceptions
OperatorCreationException:
if the Signer cannot be constructed.
extractKeyParametersback to summary
protected AsymmetricKeyParameter extractKeyParameters(SubjectPublicKeyInfo publicKeyInfo) throws IOException

Implements abstract org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder.extractKeyParameters.

Doc from org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder.extractKeyParameters.

Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.

Parameters
publicKeyInfo:SubjectPublicKeyInfo

a publicKeyInfo structure describing the public key required.

Returns:AsymmetricKeyParameter

an AsymmetricKeyParameter object containing the appropriate public key.

Exceptions
IOException:
if the publicKeyInfo data cannot be parsed,