CV
- The type of the CipherVersion
to be generated.public abstract class AbstractCipherVersionGenerator<CV extends CipherVersion> extends Object implements CipherVersionGenerator<CV>
Constructor and Description |
---|
AbstractCipherVersionGenerator(CipherVersionFactory<CV> aCipherVersionFactory)
Constructor for the
AbstractCipherVersionGenerator . |
Modifier and Type | Method and Description |
---|---|
protected String |
createCipher()
Hook factory method to be implemented by subclasses.
|
protected String |
createCipherUid()
Hook factory method to be implemented by subclasses.
|
boolean |
hasNext() |
CV |
next()
Generator method to be implemented by subclasses.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public AbstractCipherVersionGenerator(CipherVersionFactory<CV> aCipherVersionFactory)
AbstractCipherVersionGenerator
. The provided
CipherVersionFactory
is used to create the actual
CipherVersion
instances generated by this
CipherVersionGenerator
.aCipherVersionFactory
- The CipherVersionFactory
used to
create the CipherVersion
instances of the required type.public boolean hasNext()
hasNext
in interface Iterator<CV extends CipherVersion>
hasNext
in interface org.refcodes.generator.Generator<CV extends CipherVersion>
public void remove()
remove
in interface Iterator<CV extends CipherVersion>
public CV next()
next
in interface Iterator<CV extends CipherVersion>
next
in interface CipherVersionGenerator<CV extends CipherVersion>
next
in interface org.refcodes.generator.Generator<CV extends CipherVersion>
CipherVersion
for encryption.protected String createCipherUid()
protected String createCipher()
Copyright © 2017. All rights reserved.