Additional top-level class in compilation unit: KrbDelegationPermissionCollection.
Deprecated
for removal since 25.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
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.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private transient String | |
| private transient String |
| Access | Constructor and Description |
|---|---|
| public | DelegationPermission(String
the name of the subordinate and target principals principals)Create a new |
| public | DelegationPermission(String
the name of the subordinate and target principals principals, String should be null. actions)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true ifobj is a DelegationPermission, and
has the same subordinate and service principal as this
DelegationPermission object.the object to test for equality with this object. obj)Overrides java. Checks two DelegationPermission objects for equality. |
| public int | Returns: the hash code value for this objectOverrides java. Returns the hash code value for this object. |
| public boolean | Returns: true if the specified permission is implied by this object, false if not.the permission to check against. p)Overrides java. Checks if this Kerberos delegation permission object "implies" the specified permission. |
| private void | init(String target)
Hides java. Initialize the DelegationPermission object. |
| public PermissionCollection | Returns: a new PermissionCollection object suitable for storing DelegationPermissions.Overrides java. Returns a PermissionCollection object for storing DelegationPermission objects. |
| private synchronized void | readObject(ObjectInputStream
the s)ObjectInputStream from which data is readHides java. readObject is called to restore the state of the DelegationPermission from a stream. |
| private synchronized void | writeObject(ObjectOutputStream
the s)ObjectOutputStream to which data is writtenWriteObject is called to save the state of the DelegationPermission to a stream. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| service | back to summary |
|---|---|
| private transient String service | |
| subordinate | back to summary |
|---|---|
| private transient String subordinate | |
| DelegationPermission | back to summary |
|---|---|
| public DelegationPermission(String principals) Create a new
| |
| DelegationPermission | back to summary |
|---|---|
| public DelegationPermission(String principals, String actions) Create a new
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Checks two DelegationPermission objects for equality. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this object.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Overrides java. Checks if this Kerberos delegation permission object "implies" the specified permission.
This method returns true if this
| |
| init | back to summary |
|---|---|
| private void init(String target) Hides java. Initialize the DelegationPermission object. | |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a PermissionCollection object for storing
DelegationPermission objects.
| |
| readObject | back to summary |
|---|---|
| private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException Hides java. readObject is called to restore the state of the DelegationPermission from a stream.
| |
| writeObject | back to summary |
|---|---|
| private synchronized void writeObject(ObjectOutputStream s) throws IOException WriteObject is called to save the state of the DelegationPermission to a stream. The actions are serialized, and the superclass takes care of the name.
| |