Returns the JAAS subject that stores all the authentication information which includes Principals, public and private credentials added during authentication.
Syntax
javax.security.auth.Subject
getJAASSubject
()
Returns
The authenticated JAAS subject, or an unauthenticated subject if the authentication has not occurred.