public abstract class AbstractEncryptionService extends Object implements EncryptionService
EncryptionService
implementations.| Constructor and Description |
|---|
AbstractEncryptionService(String aNamespace,
EncryptionServer aEncryptionServer,
CipherVersionGenerator<CipherVersion> aCipherVersionGenerator)
Constructs the service with the required services and configuration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
CipherVersion |
next()
Generator method to be implemented by subclasses.
|
void |
remove() |
protected abstract <CV extends CipherVersion> |
toEncryptedCipherVersion(CV aDecyrptedCipherVersion)
Hook factory method to be implemented by subclasses.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic AbstractEncryptionService(String aNamespace, EncryptionServer aEncryptionServer, CipherVersionGenerator<CipherVersion> aCipherVersionGenerator)
aNamespace - The name space to which this service belongsaEncryptionServer - The server to which the service is being
"connected"aCipherVersionGenerator - The generator to be used for generating
CipherVersion instances.public CipherVersion next()
next in interface Iterator<CipherVersion>next in interface CipherVersionGenerator<CipherVersion>next in interface org.refcodes.generator.Generator<CipherVersion>CipherVersion for encryption.public boolean hasNext()
hasNext in interface Iterator<CipherVersion>hasNext in interface org.refcodes.generator.Generator<CipherVersion>public void remove()
remove in interface Iterator<CipherVersion>protected abstract <CV extends CipherVersion> CV toEncryptedCipherVersion(CV aDecyrptedCipherVersion)
CV - The type of the CipherVersion to be used.aDecyrptedCipherVersion - The CipherVersion to be encrypted.CipherVersion.Copyright © 2018. All rights reserved.