public class NameOrgPosSesIDAppNameHandler extends java.lang.Object implements AFCallbackHandler
NameCallback,
OrgPositionChoiceCallback, AppNameCallback, and
UserSessionIDCallback. All data is provided in the constructor of
this handler.| Constructor and Description |
|---|
NameOrgPosSesIDAppNameHandler(java.util.Collection<QualifiedAgent> agents,
java.lang.String appName,
java.lang.String userSessionID)
|
NameOrgPosSesIDAppNameHandler(java.lang.String userName,
java.util.Collection<QualifiedAgent> agents,
java.lang.String appName,
java.lang.String userSessionID)
|
| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.callback.Callback[] |
handle(javax.security.auth.callback.Callback[] callbacks)
This method is similar to
CallbackHandler.handle(Callback[]) but returns the provided callbacks back
to the caller. |
public NameOrgPosSesIDAppNameHandler(java.lang.String userName,
java.util.Collection<QualifiedAgent> agents,
java.lang.String appName,
java.lang.String userSessionID)
userName - The unique name of the user to log on. This must not be
null nor an empty/blank string. Note that this name
is case-sensitive!agents - The organisational positions of the agent with the set name
which to log on. All these agents need to have the provided
userName. These have to contain at least one
qualified agent.appName - The application name for which to log on. This may be
null.userSessionID - The user session ID to use for all provided agents.
This may be null.public NameOrgPosSesIDAppNameHandler(java.util.Collection<QualifiedAgent> agents, java.lang.String appName, java.lang.String userSessionID)
NameCallback,
OrgPositionChoiceCallback and UserSessionIDCallback. The
user name is taken from the provided collection of agents.agents - The user name and the organisational positions of the agent
with the set name which to log on. All these agents need to have
the same user name. These have to contain at least one qualified
agent.appName - The application name for which to log on. This may be
null.userSessionID - The user session ID to use for all provided agents.
This may be null.public javax.security.auth.callback.Callback[] handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
AFCallbackHandlerCallbackHandler.handle(Callback[]) but returns the provided callbacks back
to the caller. This allows for calling this method remotely. Note that all
callbacks need to be serialisable. handle in interface AFCallbackHandlercallbacks - The callbacks to be handled by this callback handler.java.io.IOException - If an input or output error occurs, an
IOException will be thrown.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, an
UnsupportedCallbackException will be thrown.