Udostępnij za pośrednictwem


IAclEntry Interface

Definition

This is the interface used for representing one entry in an Access Control List (ACL).

[Android.Runtime.Register("java/security/acl/AclEntry", "", "Java.Security.Acl.IAclEntryInvoker")]
public interface IAclEntry : IDisposable, Java.Interop.IJavaPeerable, Java.Lang.ICloneable
[<Android.Runtime.Register("java/security/acl/AclEntry", "", "Java.Security.Acl.IAclEntryInvoker")>]
type IAclEntry = interface
    interface ICloneable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

This is the interface used for representing one entry in an Access Control List (ACL).

An ACL can be thought of as a data structure with multiple ACL entry objects. Each ACL entry object contains a set of permissions associated with a particular principal. (A principal represents an entity such as an individual user or a group). Additionally, each ACL entry is specified as being either positive or negative. If positive, the permissions are to be granted to the associated principal. If negative, the permissions are to be denied. Each principal can have at most one positive ACL entry and one negative entry; that is, multiple positive or negative ACL entries are not allowed for any principal.

Note: ACL entries are by default positive. An entry becomes a negative entry only if the #setNegativePermissions() setNegativePermissions method is called on it.

Added in 1.1.

This member is deprecated. This class is deprecated and subject to removal in a future version of Java SE. It has been replaced by java.security.Policy and related classes since 1.2.

Java documentation for java.security.acl.AclEntry.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsNegative

Returns whether this ACL entry is negative.

JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)
Principal

Returns the principal of this ACL entry.

Methods

AddPermission(IPermission)

Adds the specified permission to this ACL entry.

CheckPermission(IPermission)

Checks if the specified permission is part of the permission set in this entry.

Clone()

Clones this ACL entry.

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Permissions()

Returns an enumeration of the permissions in this ACL entry.

RemovePermission(IPermission)

Removes the specified permission from this ACL entry.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetNegativePermissions()

Sets this ACL entry to be a negative one.

SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
SetPrincipal(IPrincipal)

Specifies the principal for which permissions are granted or denied by this ACL entry.

ToString()

Returns a string representation of the contents of this ACL entry.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to