| Modifier and Type | Field and Description |
|---|---|
| protected UpdateOutputStream | |
| protected AlgorithmParameters | |
| private final BouncyCastleFipsProvider | |
| protected AsymmetricKey | |
| private final SignatureOperatorFactory | |
| private final AlgorithmParameterSpec | |
| protected Parameters | |
| protected AlgorithmParameterSpec | |
| private final PrivateKeyConverter | |
| private final PublicKeyConverter | |
| protected OutputSigner | |
| private static final byte | |
| protected OutputVerifier |
| Access | Constructor and Description |
|---|---|
| protected | BaseSignature(BouncyCastleFipsProvider fipsProvider, SignatureOperatorFactory<T extends Parameters> operatorFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, Parameters parameters)
|
| protected | BaseSignature(BouncyCastleFipsProvider fipsProvider, SignatureOperatorFactory<T extends Parameters> operatorFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, Parameters parameters, AlgorithmParameterSpec paramSpec)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Object | engineGetParameter(String
the string name of the parameter. param)Implements abstract java.
Deprecated
replaced with engineGetParameters()
Gets the value of the specified algorithm parameter.
|
| protected AlgorithmParameters | engineGetParameters()
Overrides java. Signature object.
|
| protected void | engineInitSign(PrivateKey
the private key of the identity whose signature
will be generated. privateKey)Implements abstract java. Signature object with the specified
private key for signing operations.
|
| protected void | engineInitSign(PrivateKey
the private key of the identity whose signature
will be generated. privateKey, SecureRandom the source of randomness random)Overrides java. Signature object with the specified
private key and source of randomness for signing operations.
|
| protected void | engineInitVerify(PublicKey
the public key of the identity whose signature is
going to be verified. publicKey)Implements abstract java. Signature object with the specified
public key for verification operations.
|
| protected void | engineSetParameter(AlgorithmParameterSpec
the parameters params)Overrides java. Signature object with the specified parameter
values.
|
| protected void | engineSetParameter(String
the string identifier of the parameter. param, Object the parameter value. value)Implements abstract java.
Deprecated
replaced with engineSetParameter(java.security.spec.AlgorithmParameterSpec)
Sets the specified algorithm parameter to the specified
value.
|
| protected byte[] | engineSign()
Implements abstract java. |
| protected void | engineUpdate(byte
the byte to use for the update. b)Implements abstract java. |
| protected void | engineUpdate(byte[]
the array of bytes b, int the offset to start from in the array of bytes off, int the number of bytes to use, starting at offset len)Implements abstract java. |
| protected boolean | engineVerify(byte[]
the signature bytes to be verified. sigBytes)Implements abstract java. |
| private byte |
| dataStream | back to summary |
|---|---|
| protected UpdateOutputStream dataStream | |
| engineParams | back to summary |
|---|---|
| protected AlgorithmParameters engineParams | |
| fipsProvider | back to summary |
|---|---|
| private final BouncyCastleFipsProvider fipsProvider | |
| key | back to summary |
|---|---|
| protected AsymmetricKey key | |
| operatorFactory | back to summary |
|---|---|
| private final SignatureOperatorFactory<T extends Parameters> operatorFactory | |
| originalSpec | back to summary |
|---|---|
| private final AlgorithmParameterSpec originalSpec | |
| parameters | back to summary |
|---|---|
| protected Parameters parameters | |
| paramSpec | back to summary |
|---|---|
| protected AlgorithmParameterSpec paramSpec | |
| privateKeyConverter | back to summary |
|---|---|
| private final PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter | |
| publicKeyConverter | back to summary |
|---|---|
| private final PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter | |
| signer | back to summary |
|---|---|
| protected OutputSigner<T extends Parameters> signer | |
| TRAILER_IMPLICIT | back to summary |
|---|---|
| private static final byte TRAILER_IMPLICIT | |
| verifier | back to summary |
|---|---|
| protected OutputVerifier<T extends Parameters> verifier | |
| BaseSignature | back to summary |
|---|---|
| protected BaseSignature(BouncyCastleFipsProvider fipsProvider, SignatureOperatorFactory<T extends Parameters> operatorFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, Parameters parameters) | |
| BaseSignature | back to summary |
|---|---|
| protected BaseSignature(BouncyCastleFipsProvider fipsProvider, SignatureOperatorFactory<T extends Parameters> operatorFactory, PublicKeyConverter<T extends AsymmetricPublicKey> publicKeyConverter, PrivateKeyConverter<T extends AsymmetricPrivateKey> privateKeyConverter, Parameters parameters, AlgorithmParameterSpec paramSpec) | |
| engineGetParameter | back to summary |
|---|---|
| protected Object engineGetParameter(String param) Implements abstract java. Doc from java. Deprecated replaced with engineGetParameters() Gets the value of the specified algorithm parameter. This method supplies a general-purpose mechanism through which it is possible to get the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time. | |
| engineGetParameters | back to summary |
|---|---|
| protected AlgorithmParameters engineGetParameters() Overrides java. Doc from java. Returns the parameters used with this The returned parameters may be the same that were used to initialize
this However, if the signature scheme does not support returning
the parameters as
| |
| engineInitSign | back to summary |
|---|---|
| protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
| |
| engineInitSign | back to summary |
|---|---|
| protected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException Overrides java. Doc from java. Initializes this This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.)
| |
| engineInitVerify | back to summary |
|---|---|
| protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
| |
| engineSetParameter | back to summary |
|---|---|
| protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes this
| |
| engineSetParameter | back to summary |
|---|---|
| protected void engineSetParameter(String param, Object value) Implements abstract java. Doc from java. Deprecated replaced with engineSetParameter(java.security.spec.AlgorithmParameterSpec) Sets the specified algorithm parameter to the specified value. This method supplies a general-purpose mechanism through which it is possible to set the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time. | |
| engineSign | back to summary |
|---|---|
| protected byte[] engineSign() throws SignatureException Implements abstract java. Doc from java. Returns the signature bytes of all the data updated so far. The format of the signature depends on the underlying signature scheme.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte b) throws SignatureException Implements abstract java. Doc from java. Updates the data to be signed or verified using the specified byte.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte[] b, int off, int len) throws SignatureException Implements abstract java. Doc from java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.
| |
| engineVerify | back to summary |
|---|---|
| protected boolean engineVerify(byte[] sigBytes) throws SignatureException Implements abstract java. Doc from java. Verifies the passed-in signature.
| |
| getPssTrailer | back to summary |
|---|---|
| private byte getPssTrailer(int trailerField) | |