Share via


Subject.GetPublicCredentials(Class) Method

Definition

Return a Set of public credentials associated with this Subject that are instances or subclasses of the specified Class.

[Android.Runtime.Register("getPublicCredentials", "(Ljava/lang/Class;)Ljava/util/Set;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public System.Collections.ICollection? GetPublicCredentials (Java.Lang.Class? c);
[<Android.Runtime.Register("getPublicCredentials", "(Ljava/lang/Class;)Ljava/util/Set;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.GetPublicCredentials : Java.Lang.Class -> System.Collections.ICollection

Parameters

c
Class

the returned Set of public credentials will all be instances of this class.

Returns

a Set of public credentials that are instances of the specified Class.

Attributes

Remarks

Return a Set of public credentials associated with this Subject that are instances or subclasses of the specified Class.

The returned Set is not backed by this Subject's internal public Credential Set. A new Set is created and returned for each method invocation. Modifications to the returned Set will not affect the internal public Credential Set.

Java documentation for javax.security.auth.Subject.getPublicCredentials(java.lang.Class<T>).

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