Android
javax.security.auth
public final class

javax.security.auth.PrivateCredentialPermission

java.lang.Object
java.security.Permission Serializable Guard
javax.security.auth.PrivateCredentialPermission

Summary

Public Constructors

            PrivateCredentialPermission(String name, String action)

Public Methods

          boolean  equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
          String  getActions()
Returns the actions associated with the receiver.
          String  getCredentialClass()
          String[][]  getPrincipals()
          int  hashCode()
Returns an integer hash code for the receiver.
          boolean  implies(Permission permission)
Indicates whether the argument permission is implied by the receiver.
          PermissionCollection  newPermissionCollection()
Returns a new PermissionCollection for holding permissions of this class.
Methods inherited from class java.security.Permission
Methods inherited from class java.lang.Object
Methods inherited from interface java.security.Guard

Details

Public Constructors

public PrivateCredentialPermission(String name, String action)

Public Methods

public boolean equals(Object obj)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. The implementation in Object returns true only if the argument is the exact same object as the receiver (==).

Parameters

obj Object the object to compare with this object.

public String getActions()

Returns the actions associated with the receiver. Subclasses should return their actions in canonical form. If no actions are associated with the receiver, the empty string should be returned.

Returns

  • String the receiver's actions.

public String getCredentialClass()

public String[][] getPrincipals()

public int hashCode()

Returns an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.

Returns

  • int the receiver's hash.

public boolean implies(Permission permission)

Indicates whether the argument permission is implied by the receiver.

Parameters

permission Permission the permission to check.

Returns

  • boolean true if the argument permission is implied by the receiver, and false if it is not.

public PermissionCollection newPermissionCollection()

Returns a new PermissionCollection for holding permissions of this class. Answer null if any permission collection can be used.

Returns

  • PermissionCollection or null a suitable permission collection for instances of the class of the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48