Package org.jboss.remoting3.security
Class PasswordClientCallbackHandler
- java.lang.Object
-
- org.jboss.remoting3.security.PasswordClientCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
public class PasswordClientCallbackHandler extends Object implements CallbackHandler
A callback handler which performs client authentication steps.
-
-
Field Summary
Fields Modifier and Type Field Description static char[]
EMPTY_PASSWORD
An empty password array.
-
Constructor Summary
Constructors Constructor Description PasswordClientCallbackHandler(String actualUserName, String actualUserRealm, char[] password)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Callback[] callbacks)
Handle the array of given callbacks.
-
-
-
Constructor Detail
-
PasswordClientCallbackHandler
public PasswordClientCallbackHandler(String actualUserName, String actualUserRealm, char[] password)
Create a new instance.- Parameters:
actualUserName
- the user name to supply, ornull
for noneactualUserRealm
- the user realm to supply, ornull
for nonepassword
- the password to supply, ornull
for none
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws UnsupportedCallbackException
Handle the array of given callbacks.- Specified by:
handle
in interfaceCallbackHandler
- Parameters:
callbacks
- the callbacks to handle- Throws:
UnsupportedCallbackException
- if a callback is unsupported
-
-