public class PublicKeyDecryptionServiceImpl extends AbstractDecryptionService
DecryptionService retrieves CipherVersion instances from
the DecryptionServer and is decrypting the ciphers contained in the
CipherVersion instances with a private key.| Constructor and Description |
|---|
PublicKeyDecryptionServiceImpl(String aNamespace,
String aPrivateKeyPath,
DecryptionServer aDecryptionServer)
Constructs the service with the required services and configuration.
|
PublicKeyDecryptionServiceImpl(String aNamespace,
String aPrivateKeyPath,
DecryptionServer aDecryptionServer,
CipherVersionFactory<CipherVersion> aCipherVersionFactory)
Constructs the service with the required services and configuration.
|
PublicKeyDecryptionServiceImpl(String aNamespace,
String aPrivateKeyPath,
String aPrivateKeyPassPhrase,
DecryptionServer aDecryptionServer)
Constructs the service with the required services and configuration.
|
PublicKeyDecryptionServiceImpl(String aNamespace,
String aPrivateKeyPath,
String aPrivateKeyPassPhrase,
DecryptionServer aDecryptionServer,
CipherVersionFactory<CipherVersion> aCipherVersionFactory)
Constructs the service with the required services and configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createMessage()
Creates a message for which a signature is to be created in order to
authenticate for the retrieval of the cipher versions.
|
protected <CV extends CipherVersion> |
toDecryptedCipherVersion(CV aEncyrptedCipherVersion)
To decrypted cipher version.
|
protected String |
toSignature(String aMessage)
Creates a signature for the given message.
|
getCipherVersions, setCipherVersionsExpireTimeInMspublic PublicKeyDecryptionServiceImpl(String aNamespace, String aPrivateKeyPath, DecryptionServer aDecryptionServer, CipherVersionFactory<CipherVersion> aCipherVersionFactory) throws edu.vt.middleware.crypt.CryptException, IOException
aPrivateKeyPath - The path on the file system to the private key to
be used for decrypting any ciphers passed by the decryption server
in CipherVersions retrieved from a storage.aDecryptionServer - The decryption server for accessing the cipher
versionsaCipherVersionFactory - The factory to be used for creating
CipherVersion instances.IOException - in case of I/O problemsedu.vt.middleware.crypt.CryptException - in case the cryptography algorithm had problems.public PublicKeyDecryptionServiceImpl(String aNamespace, String aPrivateKeyPath, DecryptionServer aDecryptionServer) throws edu.vt.middleware.crypt.CryptException, IOException
aPrivateKeyPath - The path on the file system to the private key to
be used for decrypting any ciphers passed by the decryption server
in CipherVersions retrieved from a storage.aDecryptionServer - The decryption server for accessing the cipher
versionsIOException - in case of I/O problemsedu.vt.middleware.crypt.CryptException - in case the cryptography algorithm had problems.public PublicKeyDecryptionServiceImpl(String aNamespace, String aPrivateKeyPath, String aPrivateKeyPassPhrase, DecryptionServer aDecryptionServer) throws edu.vt.middleware.crypt.CryptException, IOException
aPrivateKeyPath - The path on the file system to the private key to
be used for decrypting any ciphers passed by the decryption server
in CipherVersions retrieved from a storage.aPrivateKeyPassPhrase - The pass phrase for decrypting the private
key.aDecryptionServer - The decryption server for accessing the cipher
versionsIOException - in case of I/O problemsedu.vt.middleware.crypt.CryptException - in case the cryptography algorithm had problems.public PublicKeyDecryptionServiceImpl(String aNamespace, String aPrivateKeyPath, String aPrivateKeyPassPhrase, DecryptionServer aDecryptionServer, CipherVersionFactory<CipherVersion> aCipherVersionFactory) throws edu.vt.middleware.crypt.CryptException, IOException
aPrivateKeyPath - The path on the file system to the private key to
be used for decrypting any ciphers passed by the decryption server
in CipherVersions retrieved from a storage.aPrivateKeyPassPhrase - The pass phrase for decrypting the private
key.aDecryptionServer - The decryption server for accessing the cipher
versionsaCipherVersionFactory - The factory to be used for creating
CipherVersion instances.IOException - in case of I/O problemsedu.vt.middleware.crypt.CryptException - in case the cryptography algorithm had problems.protected String toSignature(String aMessage)
toSignature in class AbstractDecryptionServiceaMessage - The message for which a signature is to be generatedprotected String createMessage()
createMessage in class AbstractDecryptionServiceprotected <CV extends CipherVersion> CV toDecryptedCipherVersion(CV aEncyrptedCipherVersion)
toDecryptedCipherVersion in class AbstractDecryptionServiceCV - the generic typeaEncyrptedCipherVersion - the a encyrpted cipher versionCopyright © 2018. All rights reserved.