com.evermind.security
Interface Group

All Superinterfaces:
java.security.Principal

public interface Group
extends java.security.Principal

A Group is a Group of Users, often specified for a specific category of users, for instance administrators, users, guests, etc...


Method Summary
 void addPermission(java.security.Permission permission)
          Adds a permission to this group.
 java.lang.String getDescription()
          Returns a description of this group.
 java.util.Set getPermissions()
          Get the permissions that this group holds.
 boolean hasPermission(java.security.Permission permission)
          See if this group has the specified Permission.
 void removePermission(java.security.Permission permission)
          Removes a permission from this group.
 void setDescription(java.lang.String description)
          Sets the description.
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Method Detail

hasPermission

boolean hasPermission(java.security.Permission permission)
See if this group has the specified Permission.


getPermissions

java.util.Set getPermissions()
                             throws java.lang.UnsupportedOperationException
Get the permissions that this group holds. Throws UnsupportedOperationException if not supported.

Throws:
java.lang.UnsupportedOperationException

addPermission

void addPermission(java.security.Permission permission)
                   throws java.lang.UnsupportedOperationException
Adds a permission to this group. Throws UnsupportedOperationException if not supported.

Throws:
java.lang.UnsupportedOperationException

removePermission

void removePermission(java.security.Permission permission)
                      throws java.lang.UnsupportedOperationException
Removes a permission from this group. Throws UnsupportedOperationException if not supported.

Throws:
java.lang.UnsupportedOperationException

getDescription

java.lang.String getDescription()
Returns a description of this group.


setDescription

void setDescription(java.lang.String description)
Sets the description. Throws UnsupportedOperationException if not supported.