Top Fields Constructors Methods
org.bouncycastle.operator.bc

public Class BcEdDSAContentVerifierProviderBuilder

extends BcContentVerifierProviderBuilder
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.asn1.edec.EdECObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.crypto.Signer, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.crypto.signers.Ed25519Signer, .Ed448Signer, org.bouncycastle.crypto.util.PublicKeyFactory, org.bouncycastle.operator.OperatorCreationException

Field Summary

Modifier and TypeField and Description
public static final byte[]
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

DEFAULT_CONTEXTback to summary
public static final byte[] DEFAULT_CONTEXT

Constructor Detail

BcEdDSAContentVerifierProviderBuilderback to summary
public BcEdDSAContentVerifierProviderBuilder()

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,