public class PublicKeyEncryptionServiceImpl extends AbstractEncryptionService
Constructor and Description |
---|
PublicKeyEncryptionServiceImpl(String aNamespace,
String aPublicKeyPath,
EncryptionServer aEncryptionServer)
Constructs the service with the required services and configuration.
|
PublicKeyEncryptionServiceImpl(String aNamespace,
String aPublicKeyPath,
EncryptionServer aEncryptionServer,
CipherVersionFactory<CipherVersion> aCipherVersionFactory)
Constructs the service with the required services and configuration.
|
PublicKeyEncryptionServiceImpl(String aNamespace,
String aPublicKeyPath,
EncryptionServer aEncryptionServer,
CipherVersionGenerator<CipherVersion> aCipherVersionGenerator)
Constructs the service with the required services and configuration.
|
PublicKeyEncryptionServiceImpl(String aNamespace,
String aPublicKeyPath,
EncryptionServer aEncryptionServer,
CipherVersionGenerator<CipherVersion> aCipherVersionGenerator,
CipherVersionFactory<CipherVersion> aCipherVersionFactory)
Constructs the service with the required services and configuration.
|
Modifier and Type | Method and Description |
---|---|
protected <CV extends CipherVersion> |
toEncryptedCipherVersion(CV aDecryptedCipherVersion)
To encrypted cipher version.
|
hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public PublicKeyEncryptionServiceImpl(String aNamespace, String aPublicKeyPath, EncryptionServer aEncryptionServer) throws edu.vt.middleware.crypt.CryptException, IOException
aNamespace
- The name space to which this service belongsaPublicKeyPath
- The path on the file system to the public key to be
used for encrypting any ciphers passed to the Encryption-Server
for persisting.aEncryptionServer
- The server to which the service is being
"connected"edu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keyIOException
- in case reading the file public key caused IO
problemspublic PublicKeyEncryptionServiceImpl(String aNamespace, String aPublicKeyPath, EncryptionServer aEncryptionServer, CipherVersionGenerator<CipherVersion> aCipherVersionGenerator) throws edu.vt.middleware.crypt.CryptException, IOException
aNamespace
- The name space to which this service belongsaPublicKeyPath
- The path on the file system to the public key to be
used for encrypting any ciphers passed to the Encryption-Server
for persisting.aEncryptionServer
- The server to which the service is being
"connected"aCipherVersionGenerator
- The generator to be used for generating
CipherVersion
instances.edu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keyIOException
- in case reading the file public key caused IO
problemspublic PublicKeyEncryptionServiceImpl(String aNamespace, String aPublicKeyPath, EncryptionServer aEncryptionServer, CipherVersionFactory<CipherVersion> aCipherVersionFactory) throws edu.vt.middleware.crypt.CryptException, IOException
aNamespace
- The name space to which this service belongsaPublicKeyPath
- The path on the file system to the public key to be
used for encrypting any ciphers passed to the Encryption-Server
for persisting.aEncryptionServer
- The server to which the service is being
"connected"aCipherVersionFactory
- The factory to be used for creating
CipherVersion
instances.edu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keyIOException
- in case reading the file public key caused IO
problemspublic PublicKeyEncryptionServiceImpl(String aNamespace, String aPublicKeyPath, EncryptionServer aEncryptionServer, CipherVersionGenerator<CipherVersion> aCipherVersionGenerator, CipherVersionFactory<CipherVersion> aCipherVersionFactory) throws edu.vt.middleware.crypt.CryptException, IOException
aNamespace
- The name space to which this service belongsaPublicKeyPath
- The path on the file system to the public key to be
used for encrypting any ciphers passed to the Encryption-Server
for persisting.aEncryptionServer
- The server to which the service is being
"connected"aCipherVersionGenerator
- The generator to be used for generating
CipherVersion
instances.aCipherVersionFactory
- The factory to be used for creating
CipherVersion
instances.edu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keyIOException
- in case reading the file public key caused IO
problemsprotected <CV extends CipherVersion> CV toEncryptedCipherVersion(CV aDecryptedCipherVersion)
toEncryptedCipherVersion
in class AbstractEncryptionService
CV
- the generic typeaDecryptedCipherVersion
- the a decrypted cipher versionCopyright © 2017. All rights reserved.