public class DefaultRpcAuthenticator extends java.lang.Object implements RpcAuthenticator
RPC authenticator implementation that allows any client to access the RPC servers.
Constructor and Description |
---|
DefaultRpcAuthenticator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
authenticateRpcClient(int authType,
RpcPacket rpc)
Authenticate an RPC client and create a unique session id key.
|
int[] |
getRpcAuthenticationTypes()
Return the authentication types that are supported by this implementation.
|
ClientInfo |
getRpcClientInformation(java.lang.Object sessKey,
RpcPacket rpc)
Return the client information for the specified RPC request
|
boolean |
hasDebug()
Determine if debug output is enabled
|
void |
initialize(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the RPC authenticator
|
void |
setCurrentUser(SrvSession sess,
ClientInfo client)
Set the current authenticated user context for processing of the current RPC request
|
public java.lang.Object authenticateRpcClient(int authType, RpcPacket rpc) throws RpcAuthenticationException
authenticateRpcClient
in interface RpcAuthenticator
authType
- intrpc
- RpcPacketRpcAuthenticationException
public final boolean hasDebug()
public int[] getRpcAuthenticationTypes()
getRpcAuthenticationTypes
in interface RpcAuthenticator
public ClientInfo getRpcClientInformation(java.lang.Object sessKey, RpcPacket rpc)
getRpcClientInformation
in interface RpcAuthenticator
sessKey
- Objectrpc
- RpcPacketpublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize
in interface RpcAuthenticator
config
- ServerConfigurationparams
- ConfigElementInvalidConfigurationException
public void setCurrentUser(SrvSession sess, ClientInfo client)
setCurrentUser
in interface RpcAuthenticator
sess
- SrvSessionclient
- ClientInfoCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.