public interface RpcAuthenticator
Provides authentication support for ONC/RPC requests.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
authenticateRpcClient(int authType,
RpcPacket rpc)
Authenticate an RPC client using the credentials within the RPC request.
|
int[] |
getRpcAuthenticationTypes()
Return a list of the authentication types that the RPC authenticator implementation supports.
|
ClientInfo |
getRpcClientInformation(java.lang.Object sessKey,
RpcPacket rpc)
Get RPC client information from the RPC request.
|
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
|
void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
config
- ServerConfigurationparams
- ConfigElementInvalidConfigurationException
java.lang.Object authenticateRpcClient(int authType, RpcPacket rpc) throws RpcAuthenticationException
authType
- intrpc
- RpcPacketRpcAuthenticationException
ClientInfo getRpcClientInformation(java.lang.Object sessKey, RpcPacket rpc)
This method is called when a new session object is created by an RPC server.
sessKey
- Objectrpc
- RpcPacketint[] getRpcAuthenticationTypes()
void setCurrentUser(SrvSession sess, ClientInfo client)
sess
- SrvSessionclient
- ClientInfoCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.