| Modifier and Type | Field and Description |
|---|---|
| private final MessageDigest | |
| private final MessageDigest | |
| private final Signature |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | engineGetParameter(String param)
Implements abstract java. Gets the value of the specified algorithm parameter. |
| protected AlgorithmParameters | engineGetParameters()
Overrides java. Returns the parameters used with this |
| protected void | engineInitSign(PrivateKey privateKey)
Implements abstract java. Initializes this |
| protected void | engineInitSign(PrivateKey privateKey, SecureRandom random)
Overrides java. Initializes this |
| protected void | engineInitVerify(PublicKey publicKey)
Implements abstract java. Initializes this |
| protected void | engineSetParameter(String param, Object value)
Implements abstract java. Sets the specified algorithm parameter to the specified value. |
| protected void | engineSetParameter(AlgorithmParameterSpec params)
Overrides java. Initializes this |
| protected byte[] | engineSign()
Implements abstract java. Returns the signature bytes of all the data updated so far. |
| protected void | engineUpdate(byte b)
Implements abstract java. Updates the data to be signed or verified using the specified byte. |
| protected void | engineUpdate(byte[] b, int off, int len)
Implements abstract java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset. |
| protected boolean | engineVerify(byte[] sigBytes)
Implements abstract java. Verifies the passed-in signature. |
| protected boolean | engineVerify(byte[] sigBytes, int offset, int length)
Overrides java. Verifies the passed-in signature in the specified array of bytes, starting at the specified offset. |
| private byte[] | |
| pack-priv static Signature |
| mdMD5 | back to summary |
|---|---|
| private final MessageDigest mdMD5 | |
| mdSHA | back to summary |
|---|---|
| private final MessageDigest mdSHA | |
| rawRsa | back to summary |
|---|---|
| private final Signature rawRsa | |
| RSASignature | back to summary |
|---|---|
| public RSASignature() throws NoSuchAlgorithmException | |
| engineGetParameter | back to summary |
|---|---|
| protected Object engineGetParameter(String param) throws InvalidParameterException Implements abstract java. Doc from java. 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(String param, Object value) throws InvalidParameterException Implements abstract java. Doc from java. 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.
| |
| engineSetParameter | back to summary |
|---|---|
| protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes this
| |
| 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) 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) 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.
| |
| engineVerify | back to summary |
|---|---|
| protected boolean engineVerify(byte[] sigBytes, int offset, int length) throws SignatureException Overrides java. Doc from java. Verifies the passed-in signature in the specified array of bytes, starting at the specified offset. Note Subclasses should overwrite the default implementation.
| |
| getDigest | back to summary |
|---|---|
| private byte[] getDigest() throws SignatureException | |
| getInstance | back to summary |
|---|---|
| pack-priv static Signature getInstance() throws NoSuchAlgorithmException Get an implementation for the RSA signature. Follows the standard JCA getInstance() model, so it returns the implementation from the provider with the highest precedence, which may be this class. | |