mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-09 17:45:10 +00:00
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
33 lines
496 B
Java
33 lines
496 B
Java
/**
|
|
*
|
|
*/
|
|
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;
|
|
}
|
|
}
|