Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Java : Education - Tutorials
Java security, Part 2: Authentication and authorization
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. Authentication in JAAS
  


The Subject's methods page 3 of 13


The Subject object has several methods, some of which are as follows:

  • subject.getPrincipals() returns a set of Principal objects. Because the result is a Set, the operations remove(), add(), and contains() apply.

  • subject.getPublicCredentials() returns a set of the publicly accessible credentials associated with the Subject.

  • subject.getPrivateCredentials() returns a set of the privately accessible credentials associated with the Subject.

Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact