|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.security.context.SecurityContext
Implementation of the JOnAS Security Context CAUTION: Don't forget to modify the marshalling and the unmarshalling in the org.objectweb.jonas.security.interceptors.iiop.SecurityInterceptor class when adding attributes in SecurityContext.
Constructor Summary | |
SecurityContext()
Constructor SecurityContext use the default principal name |
|
SecurityContext(java.lang.String principalName)
Constructor SecurityContext |
|
SecurityContext(java.lang.String principalName,
java.util.ArrayList arrayRoles)
Constructor SecurityContext |
|
SecurityContext(java.lang.String principalName,
java.util.ArrayList arrayRoles,
java.util.ArrayList arrayRunas)
Constructor SecurityContext |
|
SecurityContext(java.lang.String principalName,
java.lang.String[] roles)
Constructor SecurityContext |
Method Summary | |
java.security.Principal |
getCallerPrincipal()
Method getCallerPrincipal |
java.lang.String[] |
getCallerPrincipalRoles()
Return the roles of the principal |
java.util.ArrayList |
getRunAsStack()
Gets the stack which manage the run-as |
java.lang.String |
peekRunAs()
Peek : Looks at the object at the top of this stack without removing it from the stack. |
void |
popRunAs()
Pop : Removes the object at the top of the run-as role stack |
void |
pushRunAs(java.lang.String role)
Push : Pushes an item onto the top of this stack. |
java.lang.String |
toString()
Method toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SecurityContext()
public SecurityContext(java.lang.String principalName, java.lang.String[] roles)
principalName
- principal nameroles
- the roles of the principalpublic SecurityContext(java.lang.String principalName, java.util.ArrayList arrayRoles)
principalName
- principal namearrayRoles
- the list of the roles of the principalpublic SecurityContext(java.lang.String principalName, java.util.ArrayList arrayRoles, java.util.ArrayList arrayRunas)
principalName
- principal namearrayRoles
- the list of the roles of the principalarrayRunas
- the RunAs stackpublic SecurityContext(java.lang.String principalName)
principalName
- principal nameMethod Detail |
public java.security.Principal getCallerPrincipal()
public java.lang.String[] getCallerPrincipalRoles()
public void pushRunAs(java.lang.String role)
role
- the role to add on top of the stackpublic void popRunAs()
public java.lang.String peekRunAs()
public java.util.ArrayList getRunAsStack()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |