public class UNTGenerateCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler, java.io.Serializable
UsernameToken,
UNTGenerateCallback,
Serialized Form| Constructor and Description |
|---|
UNTGenerateCallbackHandler(boolean useIdentityAssertion)
Class constructor for the intermediary
|
UNTGenerateCallbackHandler(boolean useRunAsSubject,
boolean sendRealm)
Class constructor.
|
UNTGenerateCallbackHandler(boolean useRunAsSubject,
boolean sendRealm,
boolean trustedRealm)
Class constructor.
|
UNTGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
Class constructor.
|
UNTGenerateCallbackHandler(java.lang.String userid,
java.lang.String password)
Class constructor.
|
UNTGenerateCallbackHandler(java.lang.String userid,
java.lang.String password,
boolean setNonce,
boolean setCreatedTimestamp)
Class constructor.
|
public UNTGenerateCallbackHandler(java.util.Map<java.lang.Object,java.lang.Object> properties)
properties - map including key-value pairspublic UNTGenerateCallbackHandler(java.lang.String userid,
java.lang.String password)
userid - user idpassword - passwordpublic UNTGenerateCallbackHandler(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 UNTGenerateCallbackHandler(boolean useRunAsSubject,
boolean sendRealm)
useRunAsSubject - true if run as subjectsendRealm - true if it send realmpublic UNTGenerateCallbackHandler(boolean useRunAsSubject,
boolean sendRealm,
boolean trustedRealm)
useRunAsSubject - true if run as subjectsendRealm - true if it send realmtrustedRealm - true to leverage trusted realm featurepublic UNTGenerateCallbackHandler(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.CallbackHandlercallbacks - 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 Callbacks specified in the callbacks parameter.CallbackHandler.handle(javax.security.auth.callback.Callback[])