public class NewPassphraseHolder extends java.lang.Object implements NewPassphrasePrompt
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
newPassphrase_
The new passphrase.
|
protected char[] |
oldPassphrase_
The old (current) passphrase.
|
protected PassphrasePrompt |
oldPassphrasePrompt_
If the old passphrase is unavailable but required, it will be prompted with this prompt.
|
protected boolean |
oldPassphraseRequired_
The flag that indicates, if the old passphrase is required.
|
| Modifier | Constructor and Description |
|---|---|
|
NewPassphraseHolder()
Default constructor.
|
protected |
NewPassphraseHolder(char[] newPassphrase)
Constructor taking the new passphrase only.
|
|
NewPassphraseHolder(char[] oldPassphrase,
char[] newPassphrase)
Constructor takgin the old and the new passphrase.
|
|
NewPassphraseHolder(PassphrasePrompt oldPassphrasePrompt,
char[] newPassphrase)
Constructor taking the new passphrase and a prompt for getting the old passphrase if required.
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
getNewPassphrase()
Gets the new passphrase.
|
char[] |
getOldPassphrase()
Gets the old passphrase.
|
boolean |
isCancelAllowed()
False.
|
char[][] |
promptNewPassphrase()
Returns the new passphrase and the old if required.
|
void |
setCancelAllowed(boolean allowCancel)
This method does nothing.
|
void |
setMessage(java.lang.Object promptMessageObject)
This method does nothing.
|
void |
setNewPassphrase(char[] newPassphrase)
Sets the new passphrase.
|
void |
setOldPassphrase(char[] oldPassphrase)
Sets the old passphrase.
|
void |
setOldPassphraseRequired(boolean oldPassphraseRequired)
Set if the old password is required.
|
void |
setProtectedResourceInfo(java.lang.Object protectedResourceInfo)
This method does nothing.
|
protected char[] oldPassphrase_
protected PassphrasePrompt oldPassphrasePrompt_
protected char[] newPassphrase_
protected boolean oldPassphraseRequired_
public NewPassphraseHolder()
protected NewPassphraseHolder(char[] newPassphrase)
newPassphrase - The new passphrase.public NewPassphraseHolder(char[] oldPassphrase,
char[] newPassphrase)
oldPassphrase - The old passphrase.newPassphrase - The new passphrase.public NewPassphraseHolder(PassphrasePrompt oldPassphrasePrompt, char[] newPassphrase)
oldPassphrasePrompt - The prompt for getting the old passphrase if required.newPassphrase - The new passphrase.public char[] getNewPassphrase()
public void setOldPassphrase(char[] oldPassphrase)
oldPassphrase - The old passphrase.public char[] getOldPassphrase()
public void setNewPassphrase(char[] newPassphrase)
newPassphrase - The new passphrase.public void setOldPassphraseRequired(boolean oldPassphraseRequired)
setOldPassphraseRequired in interface NewPassphrasePromptoldPassphraseRequired - True, if the old password is required.public char[][] promptNewPassphrase()
promptNewPassphrase in interface NewPassphrasePromptpublic boolean isCancelAllowed()
isCancelAllowed in interface PassphraseInterfaccepublic void setCancelAllowed(boolean allowCancel)
setCancelAllowed in interface PassphraseInterfacceallowCancel - Ignored.public void setMessage(java.lang.Object promptMessageObject)
setMessage in interface PassphraseInterfaccepromptMessageObject - Ignored.public void setProtectedResourceInfo(java.lang.Object protectedResourceInfo)
setProtectedResourceInfo in interface PassphraseInterfacceprotectedResourceInfo - Ignored.IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4