mail.test
Class TestEncSupply
java.lang.Object
mail.test.TestEncSupply
- All Implemented Interfaces:
- EncSupply
public class TestEncSupply
- extends java.lang.Object
- implements EncSupply
Field Summary |
(package private) java.security.PrivateKey |
privkey
|
(package private) java.security.PublicKey |
pubkey
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pubkey
java.security.PublicKey pubkey
privkey
java.security.PrivateKey privkey
TestEncSupply
public TestEncSupply()
getPrivateKey
public java.security.PrivateKey getPrivateKey()
throws EncSupplyException
- Description copied from interface:
EncSupply
- fetches the private key used to sign mails and decrypt encoded mails
- Specified by:
getPrivateKey
in interface EncSupply
- Returns:
-
- Throws:
EncSupplyException
getPublicKey
public java.security.PublicKey getPublicKey()
throws EncSupplyException
- Specified by:
getPublicKey
in interface EncSupply
- Throws:
EncSupplyException
getStoreCipher
public javax.crypto.Cipher getStoreCipher()
throws EncSupplyException
- Description copied from interface:
EncSupply
- fetches the Cipher with which to encrypt or decrypt locally stored data
- Specified by:
getStoreCipher
in interface EncSupply
- Returns:
-
- Throws:
EncSupplyException
getStoreKey
public javax.crypto.SecretKey getStoreKey()
throws EncSupplyException
- Description copied from interface:
EncSupply
- fetches the Key used to encrypt data stored on the harddisk (emails, addressbook)
- Specified by:
getStoreKey
in interface EncSupply
- Returns:
- the secret (symmetrical) key
- Throws:
EncSupplyException
setKeyStore
public void setKeyStore(java.io.File f)
throws EncSupplyException
- Specified by:
setKeyStore
in interface EncSupply
- Throws:
EncSupplyException