Oracle Application Server JAAS Provider API Reference
10g Release 2 (10.1.2)

B14019-02


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...

This interface is deprecated in 10.1.2 in favor of the standard J2SE JAAS mechanism based on LoginModule. See OC4J Security Guide for more information on implementing custom JAAS login module.


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

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

getPermissions

public 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

public 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

public 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

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

setDescription

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

Oracle Application Server JAAS Provider API Reference
10g Release 2 (10.1.2)

B14019-02


Copyright © 2004, 2005, Oracle. All rights reserved.