org.glite.security.util.axis
Class InitSecurityContext

java.lang.Object
  extended by org.glite.security.util.axis.InitSecurityContext

public class InitSecurityContext
extends java.lang.Object

DOCUMENT ME!

Author:
mulmo Created on Oct 11, 2004

Constructor Summary
InitSecurityContext()
           
 
Method Summary
static void init()
          Initializes the SecurityContext from a MessageContext.
static void initClearSC()
          Initialize a clear security context, which will fail on all security checks.
static void initSC(javax.servlet.ServletRequest req)
          Sets up the client's credentials.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitSecurityContext

public InitSecurityContext()
Method Detail

init

public static void init()
Initializes the SecurityContext from a MessageContext.

See Also:
Handler.invoke(MessageContext)

initSC

public static void initSC(javax.servlet.ServletRequest req)
Sets up the client's credentials. This method sets the current org.glite.java.security.SecurityContext to a new instance and initializes it from the client's certificate.

If the certificate is invalid, or there is some other problem with the client's credentials, then the distinguished name and CA will be set to null.

Parameters:
req - The servlet request to load the certificate chain from.

initClearSC

public static void initClearSC()
Initialize a clear security context, which will fail on all security checks. It is intended for non-authenticated requests.