FileDocCategorySizeDatePackage
AbstractSecurityContext.javaAPI DocGlassfish v2 API3200Fri May 04 22:35:22 BST 2007com.sun.enterprise.security

AbstractSecurityContext

public abstract class AbstractSecurityContext extends Object implements Serializable
This base class defines the methods that Security Context should exhibit. There are two places where a derived class are used. They are on the appclient side and ejb side. The derived classes can use thread local storage to store the security contexts.
author
Harpreet Singh

Fields Summary
protected Principal
initiator
protected Subject
subject
Constructors Summary
Methods Summary
public abstract java.security.PrincipalgetCallerPrincipal()
This method should be implemented by the subclasses to return the caller principal. This information may be redundant since the same information can be inferred by inspecting the Credentials of the caller.

return
The caller Principal.

public abstract javax.security.auth.SubjectgetSubject()
This method should be implemented by the subclasses to return the Credentials of the caller principal.

return
A credentials object associated with the current client invocation.