Home » geronimo-2.2-source-release » org.apache.geronimo.security » [javadoc | source]
org.apache.geronimo.security
public class: ContextManager [javadoc | source]
java.lang.Object
   org.apache.geronimo.security.ContextManager
Field Summary
public static final  GeronimoSecurityPermission GET_CONTEXT     
public static final  GeronimoSecurityPermission SET_CONTEXT     
public static final  Subject EMPTY     
Method from org.apache.geronimo.security.ContextManager Summary:
clearCallers,   getAlgorithm,   getCallers,   getCurrentCaller,   getCurrentContext,   getCurrentId,   getCurrentPrincipal,   getNextCaller,   getPassword,   getRegisteredSubject,   getSubjectId,   getThreadData,   getThreadPrincipal,   login,   login,   login,   login,   logout,   popCallers,   pushNextCaller,   registerSubject,   registerSubjectShort,   setAlgorithm,   setCallers,   setNextCaller,   setPassword,   unregisterSubject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.security.ContextManager Detail:
 public static  void clearCallers() 
 public static String getAlgorithm() 
 public static Callers getCallers() 
 public static Subject getCurrentCaller() 
 public static AccessControlContext getCurrentContext() 
 public static SubjectId getCurrentId() 
 public static Principal getCurrentPrincipal(Subject callerSubject) 
 public static Subject getNextCaller() 
 public static String getPassword() 
 public static Subject getRegisteredSubject(SubjectId id) 
 public static SubjectId getSubjectId(Subject subject) 
 public static ThreadData getThreadData() 
 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.

 public static LoginContext login(String realm,
    CallbackHandler callbackHandler) throws LoginException 
Deprecated! use - the method with Configuration

 public static LoginContext login(String realm,
    CallbackHandler callbackHandler,
    Configuration configuration) throws LoginException 
 public static LoginContext login(Subject subject,
    String realm,
    CallbackHandler callbackHandler) throws LoginException 
Deprecated! use - the method with Configuration

 public static LoginContext login(Subject subject,
    String realm,
    CallbackHandler callbackHandler,
    Configuration configuration) throws LoginException 
 public static  void logout(LoginContext loginContext) throws LoginException 
 public static  void popCallers(Callers oldCallers) 
 public static Callers pushNextCaller(Subject nextCaller) 
    Pusth the run-as identity as the next identity. If the run-as identity is not specified, push the current identity as the next identity. Return the previous pair of current identity, next identity.
 public static synchronized SubjectId registerSubject(Subject subject) 
 public static synchronized AccessControlContext registerSubjectShort(Subject subject,
    Principal callerPrincipal,
    List<String> groups) 
 public static  void setAlgorithm(String algorithm) 
 public static  void setCallers(Subject currentCaller,
    Subject nextCaller) 
 public static Callers setNextCaller(Subject nextCaller) 
 public static  void setPassword(String password) 
 public static synchronized  void unregisterSubject(Subject subject)