BcDSAContentVerifierProviderBuilder
, BcECContentVerifierProviderBuilder
, BcRSAContentVerifierProviderBuilder
public abstract class BcContentVerifierProviderBuilder
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected BcDigestProvider |
digestProvider |
Constructor | Description |
---|---|
BcContentVerifierProviderBuilder() |
Modifier and Type | Method | Description |
---|---|---|
ContentVerifierProvider |
build(X509CertificateHolder certHolder) |
|
ContentVerifierProvider |
build(org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey) |
|
protected abstract org.bouncycastle.crypto.Signer |
createSigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId) |
Create the correct signer for the algorithm identifier sigAlgId.
|
protected abstract org.bouncycastle.crypto.params.AsymmetricKeyParameter |
extractKeyParameters(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) |
Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
|
protected BcDigestProvider digestProvider
public ContentVerifierProvider build(X509CertificateHolder certHolder) throws OperatorCreationException
OperatorCreationException
public ContentVerifierProvider build(org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey) throws OperatorCreationException
OperatorCreationException
protected abstract org.bouncycastle.crypto.params.AsymmetricKeyParameter extractKeyParameters(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) throws java.io.IOException
publicKeyInfo
- a publicKeyInfo structure describing the public key required.java.io.IOException
- if the publicKeyInfo data cannot be parsed,protected abstract org.bouncycastle.crypto.Signer createSigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId) throws OperatorCreationException
sigAlgId
- the algorithm details for the signature we want to verify.OperatorCreationException
- if the Signer cannot be constructed.