Java javax.security.auth Subject fields, constructors, methods, implement or subclass

Example usage for Java javax.security.auth Subject fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.security.auth Subject.

The text is from its open source code.

Constructor

Subject()
Create an instance of a Subject with an empty Set of Principals and empty Sets of public and private credentials.
Subject(boolean readOnly, Set principals, Set pubCredentials, Set privCredentials)
Create an instance of a Subject with Principals and credentials.

Method

TdoAs(final Subject subject, final java.security.PrivilegedAction action)
Perform work as a particular Subject .
TdoAs(final Subject subject, final java.security.PrivilegedExceptionAction action)
Perform work as a particular Subject .
TdoAsPrivileged(final Subject subject, final java.security.PrivilegedAction action, final java.security.AccessControlContext acc)
Perform privileged work as a particular Subject .
TdoAsPrivileged(final Subject subject, final java.security.PrivilegedExceptionAction action, final java.security.AccessControlContext acc)
Perform privileged work as a particular Subject .
SetgetPrincipals()
Return the Set of Principals associated with this Subject .
SetgetPrincipals(Class c)
Return a Set of Principals associated with this Subject that are instances or subclasses of the specified Class .
SetgetPrivateCredentials(Class c)
Return a Set of private credentials associated with this Subject that are instances or subclasses of the specified Class .
SetgetPrivateCredentials()
Return the Set of private credentials held by this Subject .
SetgetPublicCredentials()
Return the Set of public credentials held by this Subject .
SetgetPublicCredentials(Class c)
Return a Set of public credentials associated with this Subject that are instances or subclasses of the specified Class .
SubjectgetSubject(final AccessControlContext acc)
Get the Subject associated with the provided AccessControlContext .
booleanisReadOnly()
Query whether this Subject is read-only.
voidsetReadOnly()
Set this Subject to be read-only.
StringtoString()
Return the String representation of this Subject .