Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

Group

implements Principal
java.security.acl.Group

Class Overview

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.
[Expand]
Inherited Methods
From interface java.security.Principal

Public Methods

public abstract boolean addMember ( Principal user)

Added in API level 1

Adds a member to this group.

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

public abstract boolean isMember ( Principal member)

Added in API level 1

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

Parameters
member the principal to check.
Returns
  • true if the principal is a member, otherwise false .

public abstract Enumeration <? extends  Principal > members ()

Added in API level 1

Returns the members of this group.

Returns
  • the members of this group.

public abstract boolean removeMember ( Principal user)

Added in API level 1

Removes a member from this group.

Parameters
user the member to remove.
Returns
  • true if the member was removed, false if it was not a member.