public class AlfrescoRpcAuthenticator
extends java.lang.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
|
java.lang.Object |
authenticateRpcClient(int authType,
org.alfresco.jlan.oncrpc.RpcPacket rpc)
Authenticate an RPC client and create a unique session id key.
|
protected java.lang.Object |
doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback 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(java.lang.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(java.util.List userMappings) |
public void setUserMappings(java.util.List userMappings)
public void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
public void setAuthenticationService(MutableAuthenticationService authenticationService)
public void setTransactionService(TransactionService transactionService)
public java.lang.Object authenticateRpcClient(int authType,
org.alfresco.jlan.oncrpc.RpcPacket rpc)
throws org.alfresco.jlan.oncrpc.RpcAuthenticationException
authenticateRpcClient in interface org.alfresco.jlan.oncrpc.RpcAuthenticatorauthType - intrpc - RpcPacketorg.alfresco.jlan.oncrpc.RpcAuthenticationExceptionpublic int[] getRpcAuthenticationTypes()
getRpcAuthenticationTypes in interface org.alfresco.jlan.oncrpc.RpcAuthenticatorpublic org.alfresco.jlan.server.auth.ClientInfo getRpcClientInformation(java.lang.Object sessKey,
org.alfresco.jlan.oncrpc.RpcPacket rpc)
getRpcClientInformation in interface org.alfresco.jlan.oncrpc.RpcAuthenticatorsessKey - Objectrpc - RpcPacketpublic void setCurrentUser(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.auth.ClientInfo client)
setCurrentUser in interface org.alfresco.jlan.oncrpc.RpcAuthenticatorsess - 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.RpcAuthenticatorconfig - ServerConfigurationparams - NameValueListorg.alfresco.jlan.server.config.InvalidConfigurationExceptionpublic void afterPropertiesSet()
throws org.alfresco.jlan.server.config.InvalidConfigurationException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanorg.alfresco.jlan.server.config.InvalidConfigurationExceptionprotected java.lang.Object doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback callback)
callback - a callback that does the worknull if not applicableprotected AuthenticationComponent getAuthenticationComponent()
protected MutableAuthenticationService getAuthenticationService()
protected TransactionService getTransactionService()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.