Sdílet prostřednictvím


Subject.GetSubject(AccessControlContext) Method

Definition

Get the Subject associated with the provided AccessControlContext.

[Android.Runtime.Register("getSubject", "(Ljava/security/AccessControlContext;)Ljavax/security/auth/Subject;", "")]
public static Javax.Security.Auth.Subject? GetSubject (Java.Security.AccessControlContext? acc);
[<Android.Runtime.Register("getSubject", "(Ljava/security/AccessControlContext;)Ljavax/security/auth/Subject;", "")>]
static member GetSubject : Java.Security.AccessControlContext -> Javax.Security.Auth.Subject

Parameters

acc
AccessControlContext

the AccessControlContext from which to retrieve the Subject.

Returns

the Subject associated with the provided AccessControlContext, or null if no Subject is associated with the provided AccessControlContext.

Attributes

Remarks

Get the Subject associated with the provided AccessControlContext.

The AccessControlContext may contain many Subjects (from nested doAs calls). In this situation, the most recent Subject associated with the AccessControlContext is returned.

Java documentation for javax.security.auth.Subject.getSubject(java.security.AccessControlContext).

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