public class BaseSubject extends Object implements Subject
Subject,
Serialized Form| Constructor and Description |
|---|
BaseSubject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPrincipal(Principal principal)
Adds a new principal to this subject.
|
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.
|
public final Set<Principal> getPrincipals()
SubjectgetPrincipals in interface SubjectSubject.getPrincipals()public final boolean isReadOnly()
SubjectisReadOnly in interface SubjectSubject.isReadOnly()public final void setReadOnly()
SubjectsetReadOnly in interface SubjectSubject.setReadOnly()public final boolean addPrincipal(Principal principal)
principal - Copyright © 2015. All rights reserved.