Fields
Name | Description |
---|---|
SIGN | Possible state value, signifying that this signature object has been initialized for signing. |
state | Current state of this signature object. |
UNINITIALIZED | Possible state value, signifying that this signature object has not yet been initialized. |
VERIFY | Possible state value, signifying that this signature object has been initialized for verification. |
Constructors
Name | Description |
---|---|
Signature(String) | Creates a Signature object for the specified algorithm. |
Methods
Name | Description |
---|---|
clone() | Returns a clone if the implementation is cloneable. |
engineGetParameter(String) | SPI: Gets the value of the specified algorithm parameter. |
engineInitSign(PrivateKey) | SPI: Initializes this signature object with the specified private key for signing operations. |
engineInitVerify(PublicKey) | SPI: Initializes this signature object with the specified public key for verification operations. |
engineSetParameter(String, Object) | SPI: Sets the specified algorithm parameter to the specified value. |
engineSign() | SPI: Returns the signature bytes of all the data updated so far. |
engineUpdate(byte) | SPI: Updates the data to be signed or verified using the specified byte. |
engineUpdate(byte[], int, int) | SPI: Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset. |
engineVerify(byte[]) | SPI: Verifies the passed-in signature. |
getAlgorithm() | Returns the name of the algorithm for this signature object. |
getInstance(String) | Generates a Signature object that implements the specified algorithm. |
getInstance(String, String) | Generates a Signature object implementing the specified algorithm, as supplied from the specified provider, if such an algorithm is available from the provider. |
getParameter(String) | Gets the value of the specified algorithm parameter. |
initSign(PrivateKey) | Initialize this object for signing. |
initVerify(PublicKey) | Initializes this object for verification. |
setParameter(String, Object) | Sets the specified algorithm parameter to the specified value. |
sign() | Returns the signature bytes of all the data updated. |
toString() | Returns a string representation of this signature object, providing information that includes the state of the object and the name of the algorithm used. |
update(byte) | Updates the data to be signed or verified by a byte. |
update(byte[]) | Updates the data to be signed or verified, using the specified array of bytes. |
update(byte[], int, int) | Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset. |
verify(byte[]) | Verifies the passed-in signature. |