public abstract class AbstractRandomKeyGenerator<S> extends Object implements KeyGenerator<S>
generate method on this class is
synchronized it protects multi-threading and race issues from messing up the key
generation, so the extending classes can easily generate keys without having to worry about such
issues.| Constructor and Description |
|---|
AbstractRandomKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
S |
generate()
Generates a new key and returns the value
|
protected abstract S |
getNext() |
public final S generate()
KeyGeneratorgenerate in interface KeyGenerator<S>protected abstract S getNext()
Copyright © 2014–2021. All rights reserved.