IOwner.AddOwner(IPrincipal, IPrincipal) Method

Definition

Caution

deprecated

Adds an owner.

[Android.Runtime.Register("addOwner", "(Ljava/security/Principal;Ljava/security/Principal;)Z", "GetAddOwner_Ljava_security_Principal_Ljava_security_Principal_Handler:Java.Security.Acl.IOwnerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public bool AddOwner (Java.Security.IPrincipal? caller, Java.Security.IPrincipal? owner);
[<Android.Runtime.Register("addOwner", "(Ljava/security/Principal;Ljava/security/Principal;)Z", "GetAddOwner_Ljava_security_Principal_Ljava_security_Principal_Handler:Java.Security.Acl.IOwnerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member AddOwner : Java.Security.IPrincipal * Java.Security.IPrincipal -> bool

Parameters

caller
IPrincipal

the principal invoking this method. It must be an owner of the ACL.

owner
IPrincipal

the owner that should be added to the list of owners.

Returns

Boolean

true if successful, false if owner is already an owner.

Attributes

Exceptions

if the invoking principal is not an owner.

Remarks

Java documentation for java.security.acl.Owner.addOwner(java.security.Principal, 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