Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Group

public interface Group
implements Principal

java.security.acl.Group


A Principal that represents a group of principals.

See also:

Summary

Public methods

abstract boolean addMember(Principal user)

Adds a member to this group.

abstract boolean isMember(Principal member)

Returns whether the specified principal is a member of this group.

abstract Enumeration<? extends Principal> members()

Returns the members of this group.

abstract boolean removeMember(Principal user)

Removes a member from this group.

Inherited methods

From interface java.security.Principal

Public methods

addMember

Added in API level 1
boolean addMember (Principal user)

Adds a member to this group.

Parameters
user Principal: the member to add.
Returns
boolean true if the member was added, false if it was already a member.

isMember

Added in API level 1
boolean isMember (Principal member)

Returns whether the specified principal is a member of this group.

Parameters
member Principal: the principal to check.
Returns
boolean true if the principal is a member, otherwise false.

members

Added in API level 1
Enumeration<? extends Principal> members ()

Returns the members of this group.

Returns
Enumeration<? extends Principal> the members of this group.

removeMember

Added in API level 1
boolean removeMember (Principal user)

Removes a member from this group.

Parameters
user Principal: the member to remove.
Returns
boolean true if the member was removed, false if it was not a member.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.