| |
|
| java.lang.Object org.jaffa.security.SecurityContext
SecurityContext | class SecurityContext (Code) | | This class encapsulates the two possible contexts of the web and ejb contain and provides a single interface
|
SecurityContext | SecurityContext(HttpServletRequest ctx)(Code) | | Create a SecurityContext based on a Servlet Request Context
Parameters: ctx - The web server request context to use |
SecurityContext | SecurityContext(EJBContext ctx)(Code) | | Create a SecurityContext based on a EJB Context
Parameters: ctx - The EJB Context to use |
equals | public boolean equals(Object obj)(Code) | | Is another SecurityContext the same as this one
Parameters: obj - The other object to compare with true if supplied object is an exact match to this one |
getPrincipal | Principal getPrincipal()(Code) | | Get the Security Prinipal Object for the User Associated to
this SecurityContext
The security principal associated to the context |
inRole | boolean inRole(String name)(Code) | | Is the user related to this SecurityContext in the specified role
Parameters: name - Name of the role to check true if in the role, false if not |
toString | public String toString()(Code) | | returns a string representation of the underlying context object
The string is a representation of this object context |
|
|
|