org.dvb.security.provider
Class ProviderPermission

java.lang.Object
  extended byjava.security.Permission
      extended byjava.security.BasicPermission
          extended byorg.dvb.security.provider.ProviderPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public final class ProviderPermission
extends java.security.BasicPermission

This class represents a Permission to install and remove cryptographic service providers. Two target names are defined for this permission, insertProvider.{provider name} and removeProvider.{provider name}.

See Also:
Serialized Form

Constructor Summary
ProviderPermission(java.lang.String name)
          Creates a new ProviderPermission.
ProviderPermission(java.lang.String name, java.lang.String actions)
          Creates a new ProviderPermission.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks for equality against this ProviderPermission object.
 int hashCode()
          Returns the hash code value for this object.
 boolean implies(java.security.Permission permission)
          Checks if this ProviderPermission object "implies" the specified permission.
 
Methods inherited from class java.security.BasicPermission
getActions, newPermissionCollection
 
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

ProviderPermission

public ProviderPermission(java.lang.String name)
Creates a new ProviderPermission.


ProviderPermission

public ProviderPermission(java.lang.String name,
                          java.lang.String actions)
Creates a new ProviderPermission. This constructor exists for use by the java.security.Policy object to instantiate new permission objects.

Parameters:
name - the target name of the permission
actions - the actions string
Method Detail

implies

public boolean implies(java.security.Permission permission)
Checks if this ProviderPermission object "implies" the specified permission.

Parameters:
permission - the specified permission to check.
Returns:
true if and only if the specified permission is an instanceof ProviderPermission

equals

public boolean equals(java.lang.Object obj)
Checks for equality against this ProviderPermission object.

Parameters:
obj - the object to test for equality with this ProviderPermission object.
Returns:
true if and only if obj is an ProviderPermission

hashCode

public int hashCode()
Returns the hash code value for this object.

Returns:
the hash code value for this object.