JBoss Remoting 3 3.2.13.GA-redhat-1

org.jboss.remoting3.security
Class SimpleServerAuthenticationProvider

java.lang.Object
  extended by 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.


Constructor Summary
SimpleServerAuthenticationProvider()
           
 
Method Summary
 void addUser(String userName, String userRealm, char[] password, KeyPair... keyPairs)
          Add a user to the authentication table.
 AuthorizingCallbackHandler getCallbackHandler(String mechanismName)
          Get a callback handler for the given mechanism name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServerAuthenticationProvider

public SimpleServerAuthenticationProvider()
Method Detail

getCallbackHandler

public AuthorizingCallbackHandler getCallbackHandler(String mechanismName)
Get a callback handler for the given mechanism name. This method is called each time a mechanism is selected for the connection and the resulting AuthorizingCallbackHandler will be cached and used multiple times for this connection, AuthorizingCallbackHandler should either be thread safe or the ServerAuthenticationProvider should provide a new instance each time called.

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 name
userRealm - the user realm
password - the password
keyPairs - the key pairs for this identity

JBoss Remoting 3 3.2.13.GA-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.