|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.vistalink.security.CallbackHandlerBase
gov.va.med.vistalink.security.CallbackHandlerUnitTest
Implements the JAAS CallbackHandler interface. Use with the
VistaLoginModule
to invoke a silent signon. Intended for use
in unit testing environments where logins must be called repetitively without
user interaction. Not for use in production environments, where users
should be interactively prompted for signon credentials.
VistaLoginModule
'slogin
method (via the indirection of the LoginContext
) invokes this
callback handler to collect user input for (access code, verify code, select
division), these values are already present and are handed back to the login
module without any user interation.
String cfgName = "RpcSampleServer";
String accessCode = "joe.123";
String verifyCode = "ebony.23";
String division = "";
// create the callbackhandler for JAAS login
CallbackHandlerUnitTest cbhSilentSimple =
new CallbackHandlerUnitTest(accessCode, verifyCode, division);
// create the JAAS LoginContext for login
lc = new LoginContext(cfgName, cbhSilentSimple);
// login to server
lc.login();
VistaLoginModule
Constructor Summary | |
CallbackHandlerUnitTest(java.lang.String accessCode,
java.lang.String verifyCode,
java.lang.String divisionIen)
Creates a simple callback handler that handles the callbacks for logon (w/av code) and post-sign-in text only. |
|
CallbackHandlerUnitTest(java.lang.String accessCode,
java.lang.String oldVerifyCode,
java.lang.String divisionIen,
java.lang.String newVerifyCode,
java.lang.String newVerifyCodeCheck)
|
Method Summary | |
void |
handle(javax.security.auth.callback.Callback[])
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CallbackHandlerUnitTest(java.lang.String accessCode, java.lang.String verifyCode, java.lang.String divisionIen)
accessCode
- Access Code to use for logonverifyCode
- Verify Code to use for logondivisionIen
- IEN of division to select for multidivisional logins. If not
needed, pass an empty string.public CallbackHandlerUnitTest(java.lang.String accessCode, java.lang.String oldVerifyCode, java.lang.String divisionIen, java.lang.String newVerifyCode, java.lang.String newVerifyCodeCheck)
accessCode
- Access Code to use for logonoldVerifyCode
- Verify Code to use for logondivisionIen
- IEN of division to select for multidivisional logins. If not
needed, pass an empty string.newVerifyCode
- new verify code to changenewVerifyCodeCheck
- should be the same as newVerifyCode, to be successful. Used as
a check.Method Detail |
public void handle(javax.security.auth.callback.Callback[]) throws javax.security.auth.callback.UnsupportedCallbackException
handle
in interface javax.security.auth.callback.CallbackHandler
javax.security.auth.callback.UnsupportedCallbackException
|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |