uk.ac.soton.itinnovation.grid.gridservit.context.helpers
Class AuthenticatedContextHelper
java.lang.Object
uk.ac.soton.itinnovation.grid.gridservit.context.helpers.AuthenticatedContextHelper
public class AuthenticatedContextHelper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticatedContextHelper
public AuthenticatedContextHelper()
getCurrentUser
public static SubjectDescription getCurrentUser()
throws ContextUnavailableException
- Get the identity of the user who signed this SOAP request.
Calls getAuthenticatedContext() on the current message context.
- Throws:
ContextUnavailableException
getAuthenticatedContext
public static SubjectDescription getAuthenticatedContext(MessageContext axisMsgCtx)
throws ContextUnavailableException
- Returns the authenticated subject context from an Axis Message Context.
This method just returns the value set using setAuthenticatedSubjectContext().
- Throws:
ContextUnavailableException - if setAuthenticatedSubjectContext was not called
setAuthenticatedSubjectContext
public static void setAuthenticatedSubjectContext(MessageContext axisMsgCtx,
SubjectDescription authenticatedSubjectContext)
- Sets the authenticated context in the Axis Message Context.
This is the subject that signed the SOAP body and the resourceID SOAP header element
(if any) with a single signature.
- Parameters:
authenticatedSubjectContext - the subject who created the signature
Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.