public final class TokenCallback extends Object implements Callback
Constructor and Description |
---|
TokenCallback(String prompt,
int length)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getPrompt()
Get the prompt.
|
byte[] |
getToken()
Get the token.
|
int |
getTokenLength()
Get the expected token length.
|
void |
setToken(byte[] token)
Set the token.
|
public TokenCallback(String prompt, int length)
prompt
- the promptlength
- the expected length of the token, in bytespublic String getPrompt()
public int getTokenLength()
public byte[] getToken()
public void setToken(byte[] token)
token
- the tokenCopyright © 2012 JBoss by Red Hat. All Rights Reserved.