|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.filesys.auth.nfs.AlfrescoRpcAuthenticator
public class AlfrescoRpcAuthenticator
Alfresco RPC Authenticator Class
Provides authentication support for the NFS server.
Constructor Summary | |
---|---|
AlfrescoRpcAuthenticator()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlfrescoRpcAuthenticator()
Method Detail |
---|
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.RpcAuthenticator
authType
- intrpc
- RpcPacket
org.alfresco.jlan.oncrpc.RpcAuthenticationException
public int[] getRpcAuthenticationTypes()
getRpcAuthenticationTypes
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
public org.alfresco.jlan.server.auth.ClientInfo getRpcClientInformation(java.lang.Object sessKey, org.alfresco.jlan.oncrpc.RpcPacket rpc)
getRpcClientInformation
in interface org.alfresco.jlan.oncrpc.RpcAuthenticator
sessKey
- Objectrpc
- RpcPacket
public 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
- NameValueList
org.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 java.lang.Object doInTransaction(RetryingTransactionHelper.RetryingTransactionCallback callback)
callback
- a callback that does the work
null
if not applicableprotected AuthenticationComponent getAuthenticationComponent()
protected MutableAuthenticationService getAuthenticationService()
protected TransactionService getTransactionService()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |