当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
JACCPortalPrincipal - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.security.impl.jacc
Class JACCPortalPrincipal
java.lang.Object
org.jboss.portal.security.impl.jacc.JACCPortalPrincipal
- All Implemented Interfaces:
- java.security.Principal
- public class JACCPortalPrincipal
- extends java.lang.Object
- implements java.security.Principal
This principal purpose is to cache some computation necessary to make the portal JACC integration work.
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
Field Summary |
private java.security.Principal[] |
principals
The set of principals that we use to give to jacc. |
private java.util.Set |
roles
The set of roles that the subject owns. |
Method Summary |
java.lang.String |
getName()
|
java.security.Principal[] |
getPrincipals()
The principals owned. |
java.util.Set |
getRoles()
Return the set of roles. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
principals
private java.security.Principal[] principals
- The set of principals that we use to give to jacc.
roles
private java.util.Set roles
- The set of roles that the subject owns.
JACCPortalPrincipal
public JACCPortalPrincipal(javax.security.auth.Subject subject)
getRoles
public java.util.Set getRoles()
- Return the set of roles.
- Returns:
- the roles
getPrincipals
public java.security.Principal[] getPrincipals()
- The principals owned.
- Returns:
- the principals
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal