public final class SimpleServerAuthenticationProvider extends java.lang.Object implements ServerAuthenticationProvider
| Modifier and Type | Class and Description |
|---|---|
private static class |
SimpleServerAuthenticationProvider.Entry |
| Modifier and Type | Field and Description |
|---|---|
private static RemotingPermission |
ADD_USER_PERM |
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,SimpleServerAuthenticationProvider.Entry>> |
map |
| Constructor and Description |
|---|
SimpleServerAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(java.lang.String userName,
java.lang.String userRealm,
char[] password,
java.security.KeyPair... keyPairs)
Add a user to the authentication table.
|
AuthorizingCallbackHandler |
getCallbackHandler(java.lang.String mechanismName)
Get a callback handler for the given mechanism name.
|
private static final RemotingPermission ADD_USER_PERM
private final java.util.Map<java.lang.String,java.util.Map<java.lang.String,SimpleServerAuthenticationProvider.Entry>> map
public AuthorizingCallbackHandler getCallbackHandler(java.lang.String mechanismName)
getCallbackHandler in interface ServerAuthenticationProvidermechanismName - null if the mechanism is not supportedpublic void addUser(java.lang.String userName,
java.lang.String userRealm,
char[] password,
java.security.KeyPair... keyPairs)
userName - the user nameuserRealm - the user realmpassword - the passwordkeyPairs - the key pairs for this identity