|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.PermissionCollection
org.jboss.portal.security.PortalPermissionCollection
public abstract class PortalPermissionCollection
This class is a litteral reference to a portal permission repository. Subclasses should implement the implies logic and leverage the repository to get the role.
Constructor Summary | |
---|---|
PortalPermissionCollection(AuthorizationDomain repository)
Create a new portal permission collection. |
Method Summary | |
---|---|
void |
add(java.security.Permission permission)
The only time this method is called is when JACC creates an instance of this object in order to add the owner permission to the collection. |
abstract java.util.Enumeration |
elements()
|
abstract javax.security.auth.Subject |
getCheckedSubject()
Return the subject being checked or null if there is none. |
abstract java.lang.String |
getRoleName()
Return the role name attached to the collection. |
boolean |
implies(java.security.Permission permission)
This implementation delegates to the container permission associated with this collection the logic of the check against the repository using the method PortalPermission#implies(AuthorizationDomain,String,PortalPermission). |
Methods inherited from class java.security.PermissionCollection |
---|
isReadOnly, setReadOnly, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortalPermissionCollection(AuthorizationDomain repository) throws java.lang.IllegalArgumentException
repository
- the repository to load the permissions from
java.lang.IllegalArgumentException
- if any argument is nullMethod Detail |
---|
public final void add(java.security.Permission permission) throws java.lang.IllegalArgumentException
add
in class java.security.PermissionCollection
java.lang.IllegalArgumentException
- if the added permission is not the owner of this collectionpublic boolean implies(java.security.Permission permission)
implies
in class java.security.PermissionCollection
public abstract java.util.Enumeration elements()
elements
in class java.security.PermissionCollection
public abstract java.lang.String getRoleName()
public abstract javax.security.auth.Subject getCheckedSubject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |