org.logi.crypto.keys
Interface VerificationKey
- All Superinterfaces:
- Key, java.security.Key, PrettyPrintable, java.io.Serializable
- All Known Subinterfaces:
- BlindingKey
- All Known Implementing Classes:
- DHPublicKey, RSAPublicKey
- public interface VerificationKey
- extends Key
This interface is implemented by keys that can be used to
verify signatures on fingerprints of data.
- Author:
- Logi Ragnarsson (logi@logi.org)
| Fields inherited from interface java.security.Key |
serialVersionUID |
| 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.
verify
public boolean verify(Signature s,
Fingerprint fp)
throws CryptoException
- Verify a Signature on a Fingerprint.
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.
- Throws:
KeyException - if this is a private key for an asymmetric algorithm
Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL