| |
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.
|