Subject.PrivateCredentials Property

Definition

Return the Set of private credentials held by this Subject.

public System.Collections.Generic.ICollection<Java.Lang.Object>? PrivateCredentials { [Android.Runtime.Register("getPrivateCredentials", "()Ljava/util/Set;", "")] get; }
[<get: Android.Runtime.Register("getPrivateCredentials", "()Ljava/util/Set;", "")>]
member this.PrivateCredentials : System.Collections.Generic.ICollection<Java.Lang.Object>

Property Value

A Set of private credentials held by this Subject.

Attributes

Remarks

Return the Set of private credentials held by this Subject.

The returned Set is backed by this Subject's internal private Credential Set. Any modification to the returned Set affects the internal private Credential Set as well.

A caller requires permissions to access the Credentials in the returned Set, or to modify the Set itself. A SecurityException is thrown if the caller does not have the proper permissions.

While iterating through the Set, a SecurityException is thrown if the caller does not have permission to access a particular Credential. The Iterator is nevertheless advanced to next element in the Set.

Java documentation for javax.security.auth.Subject.getPrivateCredentials().

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