Build 1.0_r1(from source)

javax.security.auth
Class PrivateCredentialPermission

java.lang.Object
  extended by java.security.Permission
      extended by javax.security.auth.PrivateCredentialPermission
All Implemented Interfaces:
Serializable, Guard

public final class PrivateCredentialPermission
extends Permission

See Also:
Serialized Form

Constructor Summary
PrivateCredentialPermission(String credentialClass, Set<Principal> principals)
          Creates a PrivateCredentialPermission from the Credential Class and Set of Principals
PrivateCredentialPermission(String name, String action)
           
 
Method Summary
 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
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrivateCredentialPermission

public PrivateCredentialPermission(String name,
                                   String action)

PrivateCredentialPermission

PrivateCredentialPermission(String credentialClass,
                            Set<Principal> principals)
Creates a PrivateCredentialPermission from the Credential Class and Set of Principals

Parameters:
credentialClass - - credential class name
principals - - principal set
Method Detail

getPrincipals

public String[][] getPrincipals()

getActions

public String getActions()
Description copied from class: Permission
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.

Specified by:
getActions in class Permission
Returns:
String the receiver's actions.

getCredentialClass

public String getCredentialClass()

hashCode

public int hashCode()
Description copied from class: Permission
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.

Specified by:
hashCode in class Permission
Returns:
int the receiver's hash.
See Also:
Permission.equals(java.lang.Object)

equals

public boolean equals(Object obj)
Description copied from class: Object
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 (==).

Specified by:
equals in class Permission
Parameters:
obj - Object the object to compare with this object.
Returns:
boolean true if the object is the same as this object false if it is different from this object.
See Also:
Object.hashCode()

implies

public boolean implies(Permission permission)
Description copied from class: Permission
Indicates whether the argument permission is implied by the receiver.

Specified by:
implies in class Permission
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.

newPermissionCollection

public PermissionCollection newPermissionCollection()
Description copied from class: Permission
Returns a new PermissionCollection for holding permissions of this class. Answer null if any permission collection can be used.

Overrides:
newPermissionCollection in class Permission
Returns:
PermissionCollection or null a suitable permission collection for instances of the class of the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature