public class AlfrescoRpcAuthenticator extends Object implements org.alfresco.jlan.oncrpc.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,
org.alfresco.jlan.oncrpc.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.
|
org.alfresco.jlan.server.auth.ClientInfo |
getRpcClientInformation(Object sessKey,
org.alfresco.jlan.oncrpc.RpcPacket rpc)
Return the client information for the specified RPC request
|
protected TransactionService |
getTransactionService() |
void |
initialize(org.alfresco.jlan.server.config.ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the RPC authenticator
|
void |
setAuthenticationComponent(AuthenticationComponent authenticationComponent) |
void |
setAuthenticationService(MutableAuthenticationService authenticationService) |
void |
setCurrentUser(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.auth.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, org.alfresco.jlan.oncrpc.RpcPacket rpc) throws org.alfresco.jlan.oncrpc.RpcAuthenticationException
authenticateRpcClient
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
authType
- intrpc
- RpcPacketorg.alfresco.jlan.oncrpc.RpcAuthenticationException
public int[] getRpcAuthenticationTypes()
getRpcAuthenticationTypes
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
public org.alfresco.jlan.server.auth.ClientInfo getRpcClientInformation(Object sessKey, org.alfresco.jlan.oncrpc.RpcPacket rpc)
getRpcClientInformation
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
sessKey
- Objectrpc
- RpcPacketpublic void setCurrentUser(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.auth.ClientInfo client)
setCurrentUser
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
sess
- SrvSessionclient
- ClientInfopublic void initialize(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
config
- ServerConfigurationparams
- NameValueListorg.alfresco.jlan.server.config.InvalidConfigurationException
public void afterPropertiesSet() throws org.alfresco.jlan.server.config.InvalidConfigurationException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
org.alfresco.jlan.server.config.InvalidConfigurationException
protected <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–2017 Alfresco Software. All rights reserved.