IAclEntry.SetPrincipal(IPrincipal) Method

Definition

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

[Android.Runtime.Register("setPrincipal", "(Ljava/security/Principal;)Z", "GetSetPrincipal_Ljava_security_Principal_Handler:Java.Security.Acl.IAclEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool SetPrincipal (Java.Security.IPrincipal? user);
[<Android.Runtime.Register("setPrincipal", "(Ljava/security/Principal;)Z", "GetSetPrincipal_Ljava_security_Principal_Handler:Java.Security.Acl.IAclEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetPrincipal : Java.Security.IPrincipal -> bool

Parameters

user
IPrincipal

the principal to be set for this entry.

Returns

true if the principal is set, false if there was already a principal set for this entry.

Attributes

Remarks

Specifies the principal for which permissions are granted or denied by this ACL entry. If a principal was already set for this ACL entry, false is returned, otherwise true is returned.

Java documentation for java.security.acl.AclEntry.setPrincipal(java.security.Principal).

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.

Applies to