javax.security.auth.kerberos
Class ServicePermission
public final
class
ServicePermission
extends Permission
This represents permission to access to a Kerberos service principal.
See the Kerberos authentication RFC for more information:
RFC 1510.
Since: 1.4
public ServicePermission(String name, String action)
Create a new service permission with the indicated name and actions.
The name is the name of the kerberos principal for the service.
The actions are a comma-separated list of strings. The recognized
actions are "initiate" and "accept". The "initiate" action means
that the holder of the permission can access the service. The
"accept" action means that the holder of the permission can operate
as this service.
Parameters: name the prinicpal's name action the allowed actions
public boolean equals(Object obj)
public String getActions()
Return a string representing the actions.
public int hashCode()
public boolean implies(Permission perm)
public PermissionCollection newPermissionCollection()