public class AlfrescoRpcAuthenticator extends Object implements RpcAuthenticator, org.springframework.beans.factory.InitializingBean
Provides authentication support for the NFS server.
| Constructor and Description |
|---|
AlfrescoRpcAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initialize the RPC authenticator
|
Object |
authenticateRpcClient(int authType,
RpcPacket rpc)
Authenticate an RPC client and create a unique session id key.
|
protected <T> T |
doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback<T> callback)
Does work in a transaction.
|
protected AuthenticationComponent |
getAuthenticationComponent() |
protected MutableAuthenticationService |
getAuthenticationService() |
int[] |
getRpcAuthenticationTypes()
Return the authentication types that are supported by this
implementation.
|
ClientInfo |
getRpcClientInformation(Object sessKey,
RpcPacket rpc)
Return the client information for the specified RPC request
|
protected TransactionService |
getTransactionService() |
void |
initialize(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the RPC authenticator
|
void |
setAuthenticationComponent(AuthenticationComponent authenticationComponent) |
void |
setAuthenticationService(MutableAuthenticationService authenticationService) |
void |
setCurrentUser(SrvSession sess,
ClientInfo client)
Set the current authenticated user context for this thread
|
void |
setTransactionService(TransactionService transactionService) |
void |
setUserMappings(List<UserMapping> userMappings) |
public void setUserMappings(List<UserMapping> userMappings)
public void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
public void setAuthenticationService(MutableAuthenticationService authenticationService)
public void setTransactionService(TransactionService transactionService)
public Object authenticateRpcClient(int authType, RpcPacket rpc) throws RpcAuthenticationException
authenticateRpcClient in interface RpcAuthenticatorauthType - intrpc - RpcPacketRpcAuthenticationExceptionpublic int[] getRpcAuthenticationTypes()
getRpcAuthenticationTypes in interface RpcAuthenticatorpublic ClientInfo getRpcClientInformation(Object sessKey, RpcPacket rpc)
getRpcClientInformation in interface RpcAuthenticatorsessKey - Objectrpc - RpcPacketpublic void setCurrentUser(SrvSession sess, ClientInfo client)
setCurrentUser in interface RpcAuthenticatorsess - SrvSessionclient - ClientInfopublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize in interface RpcAuthenticatorconfig - ServerConfigurationparams - NameValueListInvalidConfigurationExceptionpublic void afterPropertiesSet()
throws InvalidConfigurationException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanInvalidConfigurationExceptionprotected <T> T doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback<T> callback)
callback - a callback that does the worknull if not applicableprotected AuthenticationComponent getAuthenticationComponent()
protected MutableAuthenticationService getAuthenticationService()
protected TransactionService getTransactionService()
Copyright © 2005–2014 Alfresco Software. All rights reserved.