Class LoginCallbackHandler
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.login.LoginCallbackHandler
-
- All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler
public class LoginCallbackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandler
Password callback handler for resolving password/usernames for a JAAS login.
-
-
Constructor Summary
Constructors Constructor Description LoginCallbackHandler()
LoginCallbackHandler(java.lang.String name, java.lang.String domainname)
LoginCallbackHandler(java.lang.String name, java.lang.String password, java.lang.String domainname)
-
Method Summary
Modifier and Type Method Description void
handle(javax.security.auth.callback.Callback[] callbacks)
Handles the callbacks, and sets the user/password detail.
-
-
-
Constructor Detail
-
LoginCallbackHandler
public LoginCallbackHandler()
-
LoginCallbackHandler
public LoginCallbackHandler(java.lang.String name, java.lang.String domainname)
-
LoginCallbackHandler
public LoginCallbackHandler(java.lang.String name, java.lang.String password, java.lang.String domainname)
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
Handles the callbacks, and sets the user/password detail.- Specified by:
handle
in interfacejavax.security.auth.callback.CallbackHandler
- Parameters:
callbacks
- the callbacks to handle- Throws:
java.io.IOException
- if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException
-
-