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

Constructor Summary
ServicePermission(String name, String action)
Create a new service permission with the indicated name and actions.
Method Summary
booleanequals(Object obj)
StringgetActions()
Return a string representing the actions.
inthashCode()
booleanimplies(Permission perm)
PermissionCollectionnewPermissionCollection()

Constructor Detail

ServicePermission

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

Method Detail

equals

public boolean equals(Object obj)

getActions

public String getActions()
Return a string representing the actions.

hashCode

public int hashCode()

implies

public boolean implies(Permission perm)

newPermissionCollection

public PermissionCollection newPermissionCollection()