Iterator<CipherVersion>, CipherVersionGenerator<CipherVersion>, EncryptionService, org.refcodes.generator.Generator<CipherVersion>LoopbackEncryptionServiceImpl, PublicKeyEncryptionServiceImplpublic abstract class AbstractEncryptionService extends Object implements EncryptionService
EncryptionService
implementations.| Constructor | Description |
|---|---|
AbstractEncryptionService(String aNamespace,
EncryptionServer aEncryptionServer,
CipherVersionGenerator<CipherVersion> aCipherVersionGenerator) |
Constructs the service with the required services and configuration.
|
| Modifier and Type | Method | 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.
|
forEachRemainingpublic 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 CipherVersionGenerator<CipherVersion>next in interface org.refcodes.generator.Generator<CipherVersion>next in interface Iterator<CipherVersion>CipherVersion for encryption.public boolean hasNext()
hasNext in interface org.refcodes.generator.Generator<CipherVersion>hasNext in interface Iterator<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.