|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.wsspi.wssecurity.auth.callback.BinaryTokenCallback
The BinaryTokenCallback
allows credential token to be gathered
by CallbackHandler
and pass it to the LoginModule
.
However, credential token usually is in byte format, it is very error prone
and difficult to type it in. It usually pass to the LoginModule
programmatically.
CallbackHandler
Constructor Summary | |
---|---|
BinaryTokenCallback(java.lang.String prompt)
Construct a BinaryTokenCallback object with a prompt
hint. |
|
BinaryTokenCallback(java.lang.String prompt,
byte[] defaultCredToken)
Construct a BinaryTokenCallback object with a prompt
hint and a default credential token. |
Method Summary | |
---|---|
byte[] |
getCredToken()
Return the credential token. |
byte[] |
getDefaultCredToken()
Return the default credential token. |
java.lang.String |
getPrompt()
Return the prompt. |
void |
setCredToken(byte[] credToken)
Set the credential token. |
java.lang.String |
toString()
Returns the name of the Callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BinaryTokenCallback(java.lang.String prompt)
Construct a BinaryTokenCallback
object with a prompt
hint.
prompt
- The prompt hint.public BinaryTokenCallback(java.lang.String prompt, byte[] defaultCredToken)
Construct a BinaryTokenCallback
object with a prompt
hint and a default credential token.
prompt
- The prompt hint.defaultCredToken
- The default credential token.Method Detail |
public void setCredToken(byte[] credToken)
Set the credential token.
credToken
- The credential token.public byte[] getCredToken()
Return the credential token. If the credential token set in
BinaryTokenCallback.setCredToken()
is null
, the null
is returned.
null
.public byte[] getDefaultCredToken()
Return the default credential token. If the credential token set in
Constructor is null
, then null
is returned.
null
.public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor
is null
, then null
is returned.
null
.public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |