public class MaxUNTGenerateCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
com.ibm.websphere.wssecurity.wssapi.token.UsernameToken
,
UNTGenerateCallback
,
Serialized FormConstructor and Description |
---|
MaxUNTGenerateCallbackHandler(boolean useIdentityAssertion)
Class constructor for the intermediary
|
MaxUNTGenerateCallbackHandler(boolean useRunAsSubject,
boolean sendRealm)
Class constructor.
|
MaxUNTGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
|
MaxUNTGenerateCallbackHandler(java.lang.String userid,
java.lang.String password)
Class constructor.
|
MaxUNTGenerateCallbackHandler(java.lang.String userid,
java.lang.String password,
boolean setNonce,
boolean setCreatedTimestamp)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Sets necessary information to
NameCallback ,
PasswordCallback , and UNTGenerateCallback
objects. |
static boolean |
isTrue(java.lang.String flag)
Returns the flag is true or not
|
public MaxUNTGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
properties
- map including key-value pairspublic MaxUNTGenerateCallbackHandler(java.lang.String userid, java.lang.String password)
userid
- user idpassword
- passwordpublic MaxUNTGenerateCallbackHandler(java.lang.String userid, java.lang.String password, boolean setNonce, boolean setCreatedTimestamp)
userid
- user namepassword
- passwordsetNonce
- true if it requires noncesetCreatedTimestamp
- true if it requires timestamppublic MaxUNTGenerateCallbackHandler(boolean useRunAsSubject, boolean sendRealm)
useRunAsSubject
- true if run as subjectsendRealm
- true if it send realmpublic MaxUNTGenerateCallbackHandler(boolean useIdentityAssertion)
useIdentityAssertion
- id assertionpublic static boolean isTrue(java.lang.String flag)
flag
- a string represents boolean valuepublic void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
NameCallback
,
PasswordCallback
, and UNTGenerateCallback
objects.handle
in interface javax.security.auth.callback.CallbackHandler
callbacks
- array of Callback
objects provided by the
underlying security service which contains the information
requested to be retrieved or displayed.java.io.IOException
- if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException
- if the implementation of this method does not support one
or more of the Callback
s specified in the
callbacks parameter.CallbackHandler.handle(javax.security.auth.callback.Callback[])