javax.crypto.Signature object.
The reported algorithm name refers to the signature type being applied.
| Modifier and Type | Method and Description |
|---|---|
| public default String | Returns: The original ssh name of the signature algorithm- the negotiated value algo)
|
| public void | initSigner(SessionContext
The session, PrivateKey SessionContext for calling this method - may be null if not called within a
session contextThe key)PrivateKey to be used for signing
|
| public void | initVerifier(SessionContext
The session, PublicKey SessionContext for calling this method - may be null if not called within a
session contextThe key)PublicKey to be used for verifying signatures
|
| public byte[] | Returns: The signature valueThe session)SessionContext for calling this method - may be null if not called within a
session contextCompute the signature |
| public default void | update(SessionContext
The session, byte[] SessionContext for calling this method - may be null if not called within a
session contextThe hash data buffer hash)Update the computed signature with the given data |
| public void | update(SessionContext
The session, byte[] SessionContext for calling this method - may be null if not called within a
session contextThe hash data buffer hash, int Offset of hash data in buffer off, int Length of hash data len)Update the computed signature with the given data |
| public boolean | Returns: true if signature is validThe session, byte[] SessionContext for calling this method - may be null if not called within a
session contextThe signed data sig)Verify against the given signature |
| getSshAlgorithmName | back to summary |
|---|---|
| public default String getSshAlgorithmName(String algo) | |
| initSigner | back to summary |
|---|---|
public void initSigner(SessionContext session, PrivateKey key) throws Exception
| |
| initVerifier | back to summary |
|---|---|
public void initVerifier(SessionContext session, PublicKey key) throws Exception
| |
| sign | back to summary |
|---|---|
| public byte[] sign(SessionContext session) throws Exception Compute the signature
| |
| update | back to summary |
|---|---|
| public default void update(SessionContext session, byte[] hash) throws Exception Update the computed signature with the given data
| |
| update | back to summary |
|---|---|
| public void update(SessionContext session, byte[] hash, int off, int len) throws Exception Update the computed signature with the given data
| |
| verify | back to summary |
|---|---|
| public boolean verify(SessionContext session, byte[] sig) throws Exception Verify against the given signature
| |