org.xlattice
Interface Key


public interface Key

An asymmetric cryptographic key. This will contain the information necessary to use the key with the particular algorithm. XXX NEEDS A BETTER NAME

Author:
Jim Dixon

Method Summary
 java.lang.String algorithm()
           
 PublicKey getPublicKey()
          Another experiment.
 DigSigner getSigner(java.lang.String digestName)
          Given a message digest algorithm, return a reference to a digital signature generator suitable for this key.
 

Method Detail

algorithm

java.lang.String algorithm()
Returns:
the name of the algorithm, for example, "rsa"

getSigner

DigSigner getSigner(java.lang.String digestName)
                    throws CryptoException
Given a message digest algorithm, return a reference to a digital signature generator suitable for this key. XXX This is an experiment - it might be considered a failure, XXX in that many public key cryptography algorithms are not XXX used for digital signatures.

Parameters:
digestName - case-insensitive name of the signature generator
Throws:
CryptoException

getPublicKey

PublicKey getPublicKey()
Another experiment.