org.glite.security.util.axis
Class InitSecurityContext
java.lang.Object
org.glite.security.util.axis.InitSecurityContext
- public class InitSecurityContext
- extends java.lang.Object
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 |
InitSecurityContext
public InitSecurityContext()
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. It also sets the
remote IP address
property.
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
, unless the client is from localhost and the
configuration option voms.localhost.defaults.to.local.admin
is true. In this latter case, the credentials will be set to that of the
Local Database Administrator.
initClearSC
public static void initClearSC()
- Initialize a clear security context, which will fail on all security
checks. It is intended for non-authenticated requests.