mail
Interface EncSupply

All Known Implementing Classes:
EncSupplyUI, TestEncSupply

public interface EncSupply


Method Summary
 java.security.PrivateKey getPrivateKey()
          fetches the private key used to sign mails and decrypt encoded mails
 java.security.PublicKey getPublicKey()
           
 javax.crypto.Cipher getStoreCipher()
          fetches the Cipher with which to encrypt or decrypt locally stored data
 javax.crypto.SecretKey getStoreKey()
          fetches the Key used to encrypt data stored on the harddisk (emails, addressbook)
 void setKeyStore(java.io.File f)
           
 

Method Detail

getStoreKey

javax.crypto.SecretKey getStoreKey()
                                   throws EncSupplyException
fetches the Key used to encrypt data stored on the harddisk (emails, addressbook)

Returns:
the secret (symmetrical) key
Throws:
EncSupplyException

getStoreCipher

javax.crypto.Cipher getStoreCipher()
                                   throws EncSupplyException
fetches the Cipher with which to encrypt or decrypt locally stored data

Returns:
Throws:
EncSupplyException

getPrivateKey

java.security.PrivateKey getPrivateKey()
                                       throws EncSupplyException
fetches the private key used to sign mails and decrypt encoded mails

Returns:
Throws:
EncSupplyException

getPublicKey

java.security.PublicKey getPublicKey()
                                     throws EncSupplyException
Throws:
EncSupplyException

setKeyStore

void setKeyStore(java.io.File f)
                 throws EncSupplyException
Throws:
EncSupplyException