| |
|
| java.lang.Object org.objectweb.security.context.SecurityContext
SecurityContext | public class SecurityContext implements Serializable(Code) | | Implementation of the JOnAS Security Context CAUTION: Don't forget to modify
the Marshalling class of this package used for IIOP protocol
author: Jeff Mesnil (initial developer) author: Florent Benoit |
Inner Class :class InternalPrincipal implements Principal | |
SecurityContext | public SecurityContext()(Code) | | Constructor SecurityContext use the default principal name
|
SecurityContext | public SecurityContext(String principalName, String[] roles)(Code) | | Constructor SecurityContext
Parameters: principalName - principal name Parameters: roles - the roles of the principal |
SecurityContext | public SecurityContext(String principalName, List arrayRoles)(Code) | | Constructor SecurityContext
Parameters: principalName - principal name Parameters: arrayRoles - the list of the roles of the principal |
SecurityContext | protected SecurityContext(String principalName, List arrayRoles, List arrayRunas, List arrayRunasPrincipal, List arrayRunasPrincipalRoles)(Code) | | Constructor SecurityContext
Parameters: principalName - principal name Parameters: arrayRoles - the list of the roles of the principal Parameters: arrayRunas - the RunAs stack Parameters: arrayRunasPrincipal - the RunAs stack for principal of runAs Parameters: arrayRunasPrincipalRoles - the RunAs stack for roles of the principal |
SecurityContext | public SecurityContext(String principalName)(Code) | | Constructor SecurityContext
Parameters: principalName - principal name |
getCallerPrincipal | public Principal getCallerPrincipal(boolean inRunAs)(Code) | | Method getCallerPrincipal
Parameters: inRunAs - is the caller is in a runAs case in RunAs mode thisfunction must return the caller of the bean and not the run asidentity (EJB 2.1 chapter21.2.5.1) the Principal in the Security Context |
getCallerPrincipalRoles | public String[] getCallerPrincipalRoles(boolean inRunAs)(Code) | | Return the roles of the principal
Parameters: inRunAs - caller is in run-as bean ? roles of this principal |
getPrincipalName | protected String getPrincipalName(boolean runningRunAs)(Code) | | Parameters: runningRunAs - bean is currently running with run-as enabled the principal name. |
getPrincipalName | public String getPrincipalName()(Code) | | the principal Name. |
getRunAsPrincipalRolesStack | public synchronized List getRunAsPrincipalRolesStack()(Code) | | Gets the stack which manages the roles of the current run-as principal
the stack which manages the roles of the current run-as principal |
getRunAsPrincipalStack | public synchronized List getRunAsPrincipalStack()(Code) | | Gets the stack which manages the run-as principal
the stack which manages the run-as principal |
getRunAsRoleStack | public synchronized List getRunAsRoleStack()(Code) | | Gets the stack which manages the run-as
the stack which manages the run-as |
getSignature | public byte[] getSignature()(Code) | | Gets the signature.
signature |
peekLastRunAsPrincipal | public synchronized String peekLastRunAsPrincipal()(Code) | | Peek : Looks at the object at the top of this stack without removing it
from the stack.
the principal at the top of the stack |
peekLastRunAsPrincipalRoles | public synchronized String[] peekLastRunAsPrincipalRoles()(Code) | | Peek : Looks at the object at the top of this stack without removing it
from the stack.
the principal at the top of the stack |
peekRunAsPrincipal | public synchronized String peekRunAsPrincipal()(Code) | | Peek : Looks at the object at the top of this stack without removing it
from the stack.
the principal at the top of the stack |
peekRunAsPrincipalRoles | public synchronized String[] peekRunAsPrincipalRoles()(Code) | | Peek : Looks at the object at the top of this stack without removing it
from the stack.
the principal at the top of the stack |
peekRunAsRole | public synchronized String peekRunAsRole()(Code) | | Peek : Looks at the object at the top of this stack without removing it
from the stack.
the role at the top of the stack |
popRunAs | public synchronized void popRunAs()(Code) | | Pop : Removes the object at the top of the run-as stack
|
pushRunAs | public synchronized void pushRunAs(String role, String principalName, String[] roles)(Code) | | Push : Pushes run-as items at the top of this stack.
Parameters: role - the role to add on top of the stack Parameters: principalName - the name of the principal to add on top of thestack. Parameters: roles - list of roles of this principal. |
setSignature | public void setSignature(byte[] signedData)(Code) | | Sets the signature.
Parameters: signedData - the given data of the signature. |
toString | public String toString()(Code) | | Method toString
String a string representation of the object |
|
|
|