P - the type of these prompting PBE parameters.S - the type of the key strength.@NotThreadSafe public abstract class AbstractPromptingPbeParameters<P extends AbstractPromptingPbeParameters<P,S>,S extends KeyStrength> extends AbstractPbeParameters<P,S> implements PromptingPbeParameters<P,S>
Subclasses need to be serializable with Object(Out|In)putStream and
XML(En|De)coder.
Subclasses do not need to be safe for multi-threading.
PromptingKey.Controller<K extends PromptingKey<K>>, PromptingKey.View<K extends PromptingKey<K>>| Constructor and Description |
|---|
AbstractPromptingPbeParameters() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Prompting PBE parameters equal another object if and only if the other
object has the same runtime class and their properties compare equal.
|
int |
hashCode()
Returns a hash code which is consistent with
equals(Object). |
boolean |
isChangeRequested()
Returns whether or not the user shall get prompted for a new key upon
the next call to
PromptingKeyProvider.getKeyForWriting(),
provided that the key has been set
before. |
void |
reset()
Wipes the secret data from memory and resets all properties to their
initial state.
|
void |
setChangeRequested(boolean changeRequested)
Requests to prompt the user for a new key upon the next call to
PromptingKeyProvider.getKeyForWriting(), provided that the key
has been set by then. |
String |
toString()
Returns a string representation of this object for logging and debugging
purposes.
|
getKeyStrength, getKeyStrengthBits, getPassword, setKeyStrength, setKeyStrengthBits, setPasswordclone, finalize, getSecret, isSecretSet, setSecretgetAllKeyStrengths, getKeyStrength, getPassword, setKeyStrength, setPasswordpublic boolean equals(@Nullable Object obj)
equals in interface Key<P extends AbstractPromptingPbeParameters<P,S>>equals in class AbstractPbeParameters<P extends AbstractPromptingPbeParameters<P,S>,S extends KeyStrength>public int hashCode()
equals(Object).hashCode in interface Key<P extends AbstractPromptingPbeParameters<P,S>>hashCode in class AbstractPbeParameters<P extends AbstractPromptingPbeParameters<P,S>,S extends KeyStrength>public boolean isChangeRequested()
PromptingKeyPromptingKeyProvider.getKeyForWriting(),
provided that the key has been set
before.isChangeRequested in interface PromptingKey<P extends AbstractPromptingPbeParameters<P,S>>PromptingKeyProvider.getKeyForWriting(),
provided that the key has been
set before.public void reset()
Keyreset in interface Key<P extends AbstractPromptingPbeParameters<P,S>>reset in class AbstractPbeParameters<P extends AbstractPromptingPbeParameters<P,S>,S extends KeyStrength>public void setChangeRequested(boolean changeRequested)
PromptingKeyPromptingKeyProvider.getKeyForWriting(), provided that the key
has been set by then.setChangeRequested in interface PromptingKey<P extends AbstractPromptingPbeParameters<P,S>>changeRequested - whether or not the user shall get prompted
for a new key upon the next call to
PromptingKeyProvider.getKeyForWriting(), provided that the
key has been set by then.public String toString()
AbstractSecretKeytoString in class AbstractPbeParameters<P extends AbstractPromptingPbeParameters<P,S>,S extends KeyStrength>Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.