public final class PassphraseHolder extends java.lang.Object implements PassphrasePrompt
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
passphrase_
The passphrase
|
| Constructor and Description |
|---|
PassphraseHolder()
Empty constructor.
|
PassphraseHolder(char[] passphrase)
Constructor taking the passphrase.
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
getPassphrase()
Gets the passphrase.
|
boolean |
isCancelAllowed()
The implementation always returns false.
|
char[] |
promptPassphrase()
Gets the passphrase.
|
void |
setCancelAllowed(boolean allowCancel)
The implementation of this method does nothing.
|
void |
setMessage(java.lang.Object promptMessageObject)
The implementation of this method does nothing.
|
void |
setPassphrase(char[] passphrase)
Sets the passphrase.
|
void |
setProtectedResourceInfo(java.lang.Object protectedResourceInfo)
The implementation of this method does nothing.
|
public PassphraseHolder()
public PassphraseHolder(char[] passphrase)
passphrase - public void setMessage(java.lang.Object promptMessageObject)
setMessage in interface PassphraseInterfaccepromptMessageObject - Ignored.public void setProtectedResourceInfo(java.lang.Object protectedResourceInfo)
setProtectedResourceInfo in interface PassphraseInterfacceprotectedResourceInfo - Ignored.public char[] getPassphrase()
public void setPassphrase(char[] passphrase)
passphrase - The passphrase.public boolean isCancelAllowed()
isCancelAllowed in interface PassphraseInterfaccepublic void setCancelAllowed(boolean allowCancel)
setCancelAllowed in interface PassphraseInterfacceallowCancel - Ignored.public char[] promptPassphrase()
promptPassphrase in interface PassphrasePromptIAIK PKCS#11 Provider 1.10.0
(c) 2002 IAIK, (c) 2003, 2026 SIC