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