Subject.GetSubject(AccessControlContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.