public class AuthenticationUtils
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler
| Constructor and Description |
|---|
AuthenticationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
endSession()
Ends the current session
|
static AuthenticationDetails |
getAuthenticationDetails()
Get the authentication details for the current thread
|
static org.apache.axis.EngineConfiguration |
getEngineConfiguration()
Gets the engine configuration used to create the web service references
|
static java.lang.String |
getTicket()
Get the ticket for the current authentication details on the current thread
|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
The implementation of the passwrod call back used by the WS Security
|
static boolean |
isCurrentTicketTimedOut() |
static void |
setAuthenticationDetails(AuthenticationDetails authenticationDetails) |
static void |
startSession(java.lang.String username,
java.lang.String password)
Start a session
|
static void |
startSession(java.lang.String username,
java.lang.String password,
long timeoutInterval)
Start a session
|
public static void startSession(java.lang.String username,
java.lang.String password)
throws org.alfresco.webservice.authentication.AuthenticationFault
username - password - org.alfresco.webservice.authentication.AuthenticationFaultpublic static void startSession(java.lang.String username,
java.lang.String password,
long timeoutInterval)
throws org.alfresco.webservice.authentication.AuthenticationFault
username - password - timeoutInterval - timeout intervalorg.alfresco.webservice.authentication.AuthenticationFaultpublic static void setAuthenticationDetails(AuthenticationDetails authenticationDetails)
public static boolean isCurrentTicketTimedOut()
public static void endSession()
public static java.lang.String getTicket()
public static AuthenticationDetails getAuthenticationDetails()
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlerjava.io.IOExceptionjavax.security.auth.callback.UnsupportedCallbackExceptionCallbackHandler.handle(javax.security.auth.callback.Callback[])public static org.apache.axis.EngineConfiguration getEngineConfiguration()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.