|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.security.context.SecurityContext
public class SecurityContext
Implementation of the JOnAS Security Context CAUTION: Don't forget to modify the Marshalling class of this package used for IIOP protocol
Constructor Summary | |
---|---|
|
SecurityContext()
Constructor SecurityContext use the default principal name |
|
SecurityContext(java.lang.String principalName)
Constructor SecurityContext |
|
SecurityContext(java.lang.String principalName,
java.util.List arrayRoles)
Constructor SecurityContext |
protected |
SecurityContext(java.lang.String principalName,
java.util.List arrayRoles,
java.util.List arrayRunas,
java.util.List arrayRunasPrincipal,
java.util.List arrayRunasPrincipalRoles)
Constructor SecurityContext |
|
SecurityContext(java.lang.String principalName,
java.lang.String[] roles)
Constructor SecurityContext |
Method Summary | |
---|---|
java.security.Principal |
getCallerPrincipal(boolean inRunAs)
Method getCallerPrincipal |
java.lang.String[] |
getCallerPrincipalRoles(boolean inRunAs)
Return the roles of the principal |
java.lang.String |
getPrincipalName()
|
protected java.lang.String |
getPrincipalName(boolean runningRunAs)
|
java.lang.String[] |
getRoles()
|
java.util.List |
getRunAsPrincipalRolesStack()
Gets the stack which manages the roles of the current run-as principal |
java.util.List |
getRunAsPrincipalStack()
Gets the stack which manages the run-as principal |
java.util.List |
getRunAsRoleStack()
Gets the stack which manages the run-as |
byte[] |
getSignature()
Gets the signature. |
java.lang.String |
peekLastRunAsPrincipal()
Peek : Looks at the object at the top of this stack without removing it from the stack. |
java.lang.String[] |
peekLastRunAsPrincipalRoles()
Peek : Looks at the object at the top of this stack without removing it from the stack. |
java.lang.String |
peekRunAsPrincipal()
Peek : Looks at the object at the top of this stack without removing it from the stack. |
java.lang.String[] |
peekRunAsPrincipalRoles()
Peek : Looks at the object at the top of this stack without removing it from the stack. |
java.lang.String |
peekRunAsRole()
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 stack |
void |
pushRunAs(java.lang.String role,
java.lang.String principalName,
java.lang.String[] roles)
Push : Pushes run-as items at the top of this stack. |
void |
setSignature(byte[] signedData)
Sets the signature. |
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.List arrayRoles)
principalName
- principal namearrayRoles
- the list of the roles of the principalprotected SecurityContext(java.lang.String principalName, java.util.List arrayRoles, java.util.List arrayRunas, java.util.List arrayRunasPrincipal, java.util.List arrayRunasPrincipalRoles)
principalName
- principal namearrayRoles
- the list of the roles of the principalarrayRunas
- the RunAs stackarrayRunasPrincipal
- the RunAs stack for principal of runAsarrayRunasPrincipalRoles
- the RunAs stack for roles of the principalpublic SecurityContext(java.lang.String principalName)
principalName
- principal nameMethod Detail |
---|
public java.security.Principal getCallerPrincipal(boolean inRunAs)
inRunAs
- is the caller is in a runAs case in RunAs mode this
function must return the caller of the bean and not the run as
identity (EJB 2.1 chapter21.2.5.1)
public byte[] getSignature()
public void setSignature(byte[] signedData)
signedData
- the given data of the signature.public java.lang.String[] getCallerPrincipalRoles(boolean inRunAs)
inRunAs
- caller is in run-as bean ?
public void pushRunAs(java.lang.String role, java.lang.String principalName, java.lang.String[] roles)
role
- the role to add on top of the stackprincipalName
- the name of the principal to add on top of the
stack.roles
- list of roles of this principal.public void popRunAs()
public java.lang.String peekRunAsRole()
public java.lang.String peekRunAsPrincipal()
public java.lang.String peekLastRunAsPrincipal()
public java.lang.String[] peekRunAsPrincipalRoles()
public java.lang.String[] peekLastRunAsPrincipalRoles()
public java.util.List getRunAsRoleStack()
public java.util.List getRunAsPrincipalRolesStack()
public java.util.List getRunAsPrincipalStack()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getPrincipalName(boolean runningRunAs)
runningRunAs
- bean is currently running with run-as enabled
public java.lang.String getPrincipalName()
public java.lang.String[] getRoles()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |