org.jboss.remoting3.security
Class SimpleServerAuthenticationProvider
java.lang.Object
org.jboss.remoting3.security.SimpleServerAuthenticationProvider
- All Implemented Interfaces:
- ServerAuthenticationProvider
public final class SimpleServerAuthenticationProvider
- extends Object
- implements ServerAuthenticationProvider
A server authentication handler which maintains a simple map of user names and passwords.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleServerAuthenticationProvider
public SimpleServerAuthenticationProvider()
getCallbackHandler
public CallbackHandler getCallbackHandler(String mechanismName)
- Get a callback handler for the given mechanism name.
- Specified by:
getCallbackHandler
in interface ServerAuthenticationProvider
- Parameters:
mechanismName
-
- Returns:
- the callback handler or
null
if the mechanism is not supported
addUser
public void addUser(String userName,
String userRealm,
char[] password,
KeyPair... keyPairs)
- Add a user to the authentication table.
- Parameters:
userName
- the user nameuserRealm
- the user realmpassword
- the passwordkeyPairs
- the key pairs for this identity
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.