uk.ac.soton.itinnovation.grid.gridservit.context.helpers
Class AuthenticatedContextHelper

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.gridservit.context.helpers.AuthenticatedContextHelper

public class AuthenticatedContextHelper
extends Object


Constructor Summary
AuthenticatedContextHelper()
           
 
Method Summary
static SubjectDescription getAuthenticatedContext(MessageContext axisMsgCtx)
          Returns the authenticated subject context from an Axis Message Context.
static SubjectDescription getCurrentUser()
          Get the identity of the user who signed this SOAP request.
static void setAuthenticatedSubjectContext(MessageContext axisMsgCtx, SubjectDescription authenticatedSubjectContext)
          Sets the authenticated context in the Axis Message Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatedContextHelper

public AuthenticatedContextHelper()
Method Detail

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.