|
JBoss API: Class SecurityAssociation
org.jboss.security
|
Constructor Summary | |
SecurityAssociation()
|
Method Summary | |
static void |
clear()
Clear all principal information. |
static java.lang.Object |
getCredential()
Get the current principal credential information. |
static java.security.Principal |
getPrincipal()
Get the current principal information. |
static javax.security.auth.Subject |
getSubject()
Get the current Subject information. |
static java.security.Principal |
peekRunAsRole()
Look at the current thread of control's run-as principal role. |
static java.security.Principal |
popRunAsRole()
Pop the current thread of control's run-as principal role. |
static void |
pushRunAsRole(java.security.Principal runAsRole)
Push the current thread of control's run-as principal role. |
static void |
setCredential(java.lang.Object credential)
Set the current principal credential information. |
static void |
setPrincipal(java.security.Principal principal)
Set the current principal information. |
static void |
setServer()
Set the server mode of operation. |
static void |
setSubject(javax.security.auth.Subject subject)
Set the current Subject information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SecurityAssociation()
Method Detail |
public static java.security.Principal getPrincipal()
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.getPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.public static java.lang.Object getCredential()
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.getPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.public static javax.security.auth.Subject getSubject()
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.getPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.public static void setPrincipal(java.security.Principal principal)
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.setPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.principal,
- the current principal identity.public static void setCredential(java.lang.Object credential)
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.setPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.credential,
- the credential that proves the principal identity.public static void setSubject(javax.security.auth.Subject subject)
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.setPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.principal,
- the current principal identity.public static void clear()
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.setPrincipalInfo")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.principal,
- the current principal identity.public static void pushRunAsRole(java.security.Principal runAsRole)
public static java.security.Principal popRunAsRole()
public static java.security.Principal peekRunAsRole()
public static void setServer()
checkPermission
method with a
RuntimePermission("org.jboss.security.SecurityAssociation.setServer")
permission to ensure it's ok to access principal information.
If not, a SecurityException
will be thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |