public class BaseSubject extends Object implements Subject
Subject
,
Serialized FormConstructor 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()
Subject
getPrincipals
in interface Subject
Subject.getPrincipals()
public final boolean isReadOnly()
Subject
isReadOnly
in interface Subject
Subject.isReadOnly()
public final void setReadOnly()
Subject
setReadOnly
in interface Subject
Subject.setReadOnly()
public final boolean addPrincipal(Principal principal)
principal
- Copyright © 2015. All rights reserved.