- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- javax.security.auth.kerberos.DelegationPermission
-
- All Implemented Interfaces:
- Serializable, Guard
public final class DelegationPermission extends BasicPermission implements Serializable
This class is used to restrict the usage of the Kerberos delegation model, ie: forwardable and proxiable tickets.The target name of this
Permission
specifies a pair of kerberos service principals. The first is the subordinate service principal being entrusted to use the TGT. The second service principal designates the target service the subordinate service principal is to interact with on behalf of the initiating KerberosPrincipal. This latter service principal is specified to restrict the use of a proxiable ticket.For example, to specify the "host" service use of a forwardable TGT the target permission is specified as follows:
DelegationPermission("\"host/foo.example.com@EXAMPLE.COM\" \"krbtgt/EXAMPLE.COM@EXAMPLE.COM\"");
To give the "backup" service a proxiable nfs service ticket the target permission might be specified:
DelegationPermission("\"backup/bar.example.com@EXAMPLE.COM\" \"nfs/home.EXAMPLE.COM@EXAMPLE.COM\"");
- Since:
- 1.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DelegationPermission(String principals)
Create a newDelegationPermission
with the specified subordinate and target principals.DelegationPermission(String principals, String actions)
Create a newDelegationPermission
with the specified subordinate and target principals.
-
Method Summary
Methods Modifier and Type Method and Description boolean
equals(Object obj)
Checks two DelegationPermission objects for equality.int
hashCode()
Returns the hash code value for this object.boolean
implies(Permission p)
Checks if this Kerberos delegation permission object "implies" the specified permission.PermissionCollection
newPermissionCollection()
Returns a PermissionCollection object for storing DelegationPermission objects.-
Methods inherited from class java.security.BasicPermission
getActions
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
-
-
-
Constructor Detail
-
DelegationPermission
public DelegationPermission(String principals)
Create a newDelegationPermission
with the specified subordinate and target principals.- Parameters:
principals
- the name of the subordinate and target principals- Throws:
NullPointerException
- ifprincipals
isnull
.IllegalArgumentException
- ifprincipals
is empty.
-
DelegationPermission
public DelegationPermission(String principals, String actions)
Create a newDelegationPermission
with the specified subordinate and target principals.- Parameters:
principals
- the name of the subordinate and target principalsactions
- should be null.- Throws:
NullPointerException
- ifprincipals
isnull
.IllegalArgumentException
- ifprincipals
is empty.
-
-
Method Detail
-
implies
public boolean implies(Permission p)
Checks if this Kerberos delegation permission object "implies" the specified permission.If none of the above are true,
implies
returns false.- Overrides:
implies
in classBasicPermission
- 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(Object obj)
Checks two DelegationPermission objects for equality.- Overrides:
equals
in classBasicPermission
- Parameters:
obj
- the object to test for equality with this object.- Returns:
- true if obj is a DelegationPermission, and has the same subordinate and service principal as this. DelegationPermission object.
- See Also:
Object.hashCode()
,HashMap
-
hashCode
public int hashCode()
Returns the hash code value for this object.- Overrides:
hashCode
in classBasicPermission
- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
newPermissionCollection
public PermissionCollection newPermissionCollection()
Returns a PermissionCollection object for storing DelegationPermission objects.
DelegationPermission objects must be stored in a manner that allows them to be inserted into the collection in any order, but that also enables the PermissionCollection implies method to be implemented in an efficient (and consistent) manner.- Overrides:
newPermissionCollection
in classBasicPermission
- Returns:
- a new PermissionCollection object suitable for storing DelegationPermissions.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
25/11/2024 23:51:11 Cette version de la page est en cache (à la date du 25/11/2024 23:51:11) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 07/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/security/auth/kerberos/delegationpermission.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.