org.apache.geronimo.security
Class ContextManager
java.lang.Object
org.apache.geronimo.security.ContextManager
- public class ContextManager
- extends Object
- Version:
- $Revision: 1.9 $ $Date: 2004/07/30 23:40:12 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GET_CONTEXT
public static final GeronimoSecurityPermission GET_CONTEXT
SET_CONTEXT
public static final GeronimoSecurityPermission SET_CONTEXT
ContextManager
public ContextManager()
setCurrentCallerId
public static void setCurrentCallerId(Serializable id)
getCurrentCallerId
public static Serializable getCurrentCallerId()
setNextCaller
public static void setNextCaller(Subject subject)
getNextCaller
public static Subject getNextCaller()
setCurrentCaller
public static void setCurrentCaller(Subject subject)
getCurrentCaller
public static Subject getCurrentCaller()
getCurrentContext
public static AccessControlContext getCurrentContext()
getCurrentPrincipal
public static Principal getCurrentPrincipal()
getCurrentId
public static SubjectId getCurrentId()
getSubjectId
public static SubjectId getSubjectId(Subject subject)
isCallerInRole
public static boolean isCallerInRole(String EJBName,
String role)
getRegisteredSubject
public static Subject getRegisteredSubject(SubjectId id)
registerSubject
public static SubjectId registerSubject(Subject subject)
unregisterSubject
public static void unregisterSubject(Subject subject)
registerPrincipal
public static RealmPrincipal registerPrincipal(RealmPrincipal principal)
getThreadPrincipal
public static IdentificationPrincipal getThreadPrincipal()
- Obtain the thread's identifying principal.
Clients should use
Subject.doAs*
to associate a Subject
with the thread's call stack. It is this Subject that will be used for
authentication checks.
Return a IdentificationPrincipal
. This kind of principal
is inserted into a subject if one uses one of the Geronimo LoginModules.
It is a secure id that identifies the Subject.
- Returns:
- the principal that identifies the Subject of this thread.
- See Also:
Subject.doAs(javax.security.auth.Subject, java.security.PrivilegedAction)
,
Subject.doAs(javax.security.auth.Subject, java.security.PrivilegedExceptionAction)
,
Subject.doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedAction, java.security.AccessControlContext)
,
Subject.doAsPrivileged(javax.security.auth.Subject, java.security.PrivilegedExceptionAction, java.security.AccessControlContext)
getAlgorithm
public static String getAlgorithm()
setAlgorithm
public static void setAlgorithm(String algorithm)
getPassword
public static String getPassword()
setPassword
public static void setPassword(String password)
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.