mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Exported AuthenticationService via RMI. Insecure for now but we can switch over
to using SSL when needed. Restructured exports of AVM specific apis to authenticate remotely and pass the ticket with each remote service call. These required some changes to jndi-client and even to the web-client which uses the AVM remote interface within the Alfresco server. Oh, the point of this is that since I'm writing some CLTs, I might as well do them correctly; we'll need the option of security sooner rather than later. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4489 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.alfresco.repo.avm.clt;
|
||||
|
||||
/**
|
||||
* Remote client utility to hold an authentication ticket.
|
||||
* @author britt
|
||||
*/
|
||||
public class ClientTicketHolder
|
||||
{
|
||||
/**
|
||||
* Thread local tickets.
|
||||
*/
|
||||
private static String fTicket;
|
||||
|
||||
/**
|
||||
* Set the ticket.
|
||||
*/
|
||||
public static void SetTicket(String ticket)
|
||||
{
|
||||
fTicket = ticket;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the ticket.
|
||||
*/
|
||||
public static String GetTicket()
|
||||
{
|
||||
return fTicket;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user