CV
- The type of the CipherVersion
to be used.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)
Hook factory method to be implemented by subclasses.
|
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"IOException
- in case reading the file public key caused IO
problemsedu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keypublic 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.IOException
- in case reading the file public key caused IO
problemsedu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keypublic 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.IOException
- in case reading the file public key caused IO
problemsedu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keypublic 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.IOException
- in case reading the file public key caused IO
problemsedu.vt.middleware.crypt.CryptException
- in case a crypt exception occurred when
instantiating the public keyprotected <CV extends CipherVersion> CV toEncryptedCipherVersion(CV aDecryptedCipherVersion)
AbstractEncryptionService
toEncryptedCipherVersion
in class AbstractEncryptionService
CV
- The type of the CipherVersion
to be used.aDecryptedCipherVersion
- The CipherVersion
to be encrypted.CipherVersion
.Copyright © 2016. All rights reserved.