| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected BcDigestProvider |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ContentVerifierProvider | |
| public ContentVerifierProvider | |
| private BcSignerOutputStream | |
| protected abstract Signer | Returns: a Signer object.the algorithm details for the signature we want to verify. sigAlgId)Create the correct signer for the algorithm identifier sigAlgId. |
| protected abstract AsymmetricKeyParameter | Returns: an AsymmetricKeyParameter object containing the appropriate public key.a publicKeyInfo structure describing the public key required. publicKeyInfo)Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure. |
| digestProvider | back to summary |
|---|---|
| protected BcDigestProvider digestProvider | |
| BcContentVerifierProviderBuilder | back to summary |
|---|---|
| public BcContentVerifierProviderBuilder() | |
| build | back to summary |
|---|---|
| public ContentVerifierProvider build(final X509CertificateHolder certHolder) throws OperatorCreationException | |
| build | back to summary |
|---|---|
| public ContentVerifierProvider build(final AsymmetricKeyParameter publicKey) throws OperatorCreationException | |
| createSignatureStream | back to summary |
|---|---|
| private BcSignerOutputStream createSignatureStream(AlgorithmIdentifier algorithm, AsymmetricKeyParameter publicKey) throws OperatorCreationException | |
| createSigner | back to summary |
|---|---|
| protected abstract Signer createSigner(AlgorithmIdentifier sigAlgId) throws OperatorCreationException Create the correct signer for the algorithm identifier sigAlgId.
| |
| extractKeyParameters | back to summary |
|---|---|
| protected abstract AsymmetricKeyParameter extractKeyParameters(SubjectPublicKeyInfo publicKeyInfo) throws IOException Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
| |
| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmIdentifier | |
| private BcSignerOutputStream |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | getAlgorithmIdentifier()
Implements org. Return the algorithm identifier describing the signature algorithm and parameters this verifier supports. |
| public OutputStream | getOutputStream()
Implements org. Returns a stream that will accept data for the purpose of calculating a signature for later verification. |
| public boolean | verify(byte[]
expected value of the signature on the data. expected)Implements org. Return true if the expected value of the signature matches the data passed into the stream. |
| algorithm | back to summary |
|---|---|
| private AlgorithmIdentifier algorithm | |
| stream | back to summary |
|---|---|
| private BcSignerOutputStream stream | |
| SigVerifier | back to summary |
|---|---|
| pack-priv SigVerifier(AlgorithmIdentifier algorithm, BcSignerOutputStream stream) | |
| getAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithmIdentifier() Implements org. Doc from org. Return the algorithm identifier describing the signature algorithm and parameters this verifier supports.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements org. Doc from org. Returns a stream that will accept data for the purpose of calculating a signature for later verification. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
| |
| verify | back to summary |
|---|---|
| public boolean verify(byte[] expected) Implements org. Doc from org. Return true if the expected value of the signature matches the data passed into the stream.
| |