public class BcRSAContentVerifierProviderBuilder extends BcContentVerifierProviderBuilder
Constructor and Description |
---|
BcRSAContentVerifierProviderBuilder(DigestAlgorithmIdentifierFinder digestAlgorithmFinder) |
Modifier and Type | Method and Description |
---|---|
protected Signer |
createSigner(AlgorithmIdentifier sigAlgId)
Create the correct signer for the algorithm identifier sigAlgId.
|
protected AsymmetricKeyParameter |
extractKeyParameters(SubjectPublicKeyInfo publicKeyInfo)
Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
|
build, build
public BcRSAContentVerifierProviderBuilder(DigestAlgorithmIdentifierFinder digestAlgorithmFinder)
protected Signer createSigner(AlgorithmIdentifier sigAlgId) throws OperatorCreationException
BcContentVerifierProviderBuilder
createSigner
in class BcContentVerifierProviderBuilder
sigAlgId
- the algorithm details for the signature we want to verify.OperatorCreationException
- if the Signer cannot be constructed.protected AsymmetricKeyParameter extractKeyParameters(SubjectPublicKeyInfo publicKeyInfo) throws IOException
BcContentVerifierProviderBuilder
extractKeyParameters
in class BcContentVerifierProviderBuilder
publicKeyInfo
- a publicKeyInfo structure describing the public key required.IOException
- if the publicKeyInfo data cannot be parsed,Copyright © 2015. All rights reserved.