public interface Subject extends Serializable
Principal
s). Most implementations
will provide some means to add (and sometimes remove) principals, however all must honor the
readonly flag. setReadOnly()
is automatically triggered after a login. Subjects are
created by LoginContext
s as placeholder for the permissions of a user for the duration of
the session.Modifier and Type | Method and Description |
---|---|
Set<Principal> |
getPrincipals()
A readonly view of the principals.
|
boolean |
isReadOnly()
When set it is no longer possible to change the set of principals of this subject.
|
void |
setReadOnly()
Mark this subject as readonly.
|
Set<Principal> getPrincipals()
boolean isReadOnly()
void setReadOnly()
Copyright © 2015. All rights reserved.