|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by keys that can be used to create and validate signatures on fingerprints of data.
Method Summary | |
Signature |
sign(Fingerprint fp)
Create a signature for a Fingerprint with a private key. |
int |
signatureSize()
Returns the length of a signature in bytes. |
int |
signBlockSize()
Returns the maximum size in bytes of the fingerprints that can be signed. |
boolean |
verify(Signature s,
Fingerprint fp)
Verify a Signature on a Fingerprint. |
Methods inherited from interface org.logi.crypto.keys.Key |
getAlgorithm,
getFingerprint,
getFingerprint,
getSize,
hashCode,
isPrivate,
matches,
matchFingerprint,
matchFingerprint |
Method Detail |
public int signBlockSize()
public int signatureSize()
public Signature sign(Fingerprint fp) throws KeyException
public boolean verify(Signature s, Fingerprint fp) throws KeyException
In the case of an asymmetric algorithm, this method can only be called on the public key in a pair and verifies signatures generated with the private key in the pair.
In the case of a symmetric algorithm, this method verifies signatures generated with the same key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |