org.systinet.security.perm
Class DelegateServiceEndpointPermission

java.lang.Object
  extended byjava.security.Permission
      extended byorg.systinet.security.perm.DelegatePermission
          extended byorg.systinet.security.perm.DelegateServiceEndpointPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public final class DelegateServiceEndpointPermission
extends DelegatePermission

Permission that allows to delegate permissions oriented to service endpoint.

Since:
4.0
See Also:
Serialized Form
Component:
Security-Specific

Field Summary
static java.lang.String ALL_NAMES
          Intended for all names, can be passed to contructor.
 
Constructor Summary
DelegateServiceEndpointPermission(java.lang.String name)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks two DelegateServiceEndpointPermission objects for equality.
 boolean implies(java.security.Permission p)
          Checks if this DelegateServiceEndpointPermission object "implies" the specified permission.
 java.security.PermissionCollection newPermissionCollection()
          Returns a new PermissionCollection object for storing DelegaetPermission objects.
 
Methods inherited from class org.systinet.security.perm.DelegatePermission
getActions, hashCode, toString
 
Methods inherited from class java.security.Permission
checkGuard, getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_NAMES

public static final java.lang.String ALL_NAMES
Intended for all names, can be passed to contructor.

See Also:
Constant Field Values
Constructor Detail

DelegateServiceEndpointPermission

public DelegateServiceEndpointPermission(java.lang.String name)
Constructor.

Parameters:
name - name of the service endpoint, null implies all names
Method Detail

implies

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

More specifically, this method returns true if:

Overrides:
implies in class DelegatePermission
Parameters:
p - the permission to check against.
Returns:
true if the specified permission is implied by this object, false if not.

equals

public boolean equals(java.lang.Object obj)
Checks two DelegateServiceEndpointPermission objects for equality. Checks that obj is a DelegateServiceEndpointPermission, and has the same name and actions as this object.

Overrides:
equals in class DelegatePermission
Parameters:
obj - the object we are testing for equality with this object.
Returns:
true if obj is a DelegateServiceEndpointPermission, and has the same name.

newPermissionCollection

public java.security.PermissionCollection newPermissionCollection()
Returns a new PermissionCollection object for storing DelegaetPermission objects. At most one WSManage permission can be stored in this collection.

Overrides:
newPermissionCollection in class DelegatePermission
Returns:
a new DelegaetPermissionCollection object suitable for storing DelegaetPermission.