org.logi.crypto.keys
Interface SigningKey
- All Superinterfaces:
- Key, java.security.Key, PrettyPrintable, java.io.Serializable
- All Known Subinterfaces:
- BlindSigningKey
- All Known Implementing Classes:
- RSAPrivateKey, DHPrivateKey
- public interface SigningKey
- extends Key
This interface is implemented by keys that can be used to
create signatures on fingerprints of data.
- Author:
- Logi Ragnarsson (logi@logi.org)
| Fields inherited from interface java.security.Key |
serialVersionUID |
|
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. |
| Methods inherited from interface java.security.Key |
getEncoded, getFormat |
signBlockSize
public int signBlockSize()
- Returns the maximum size in bytes of the fingerprints
that can be signed.
signatureSize
public int signatureSize()
- Returns the length of a signature in bytes.
sign
public Signature sign(Fingerprint fp)
throws CryptoException
- Create a signature for a fingerprint with a private key.
- Throws:
KeyException - if there are problems, depending on the implementing class.
Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL