Class AnonymousRolePrincipal
java.lang.Object
ch.tocco.nice2.security.spi.ModifiablePrincipal
ch.tocco.nice2.security.spi.AnonymousRolePrincipal
- All Implemented Interfaces:
Principal
-
Field Summary
Fields inherited from interface Principal
ADMIN_ROLE_TYPES -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ModifiablePrincipal
addRole, getAttribute, getAttributeKeys, getAttributes, getPrimaryKey, getRoles, hasRole, isSupportUser, removeRole, requiresTwoFactorAuth, setAttribute, setPk, setRequiresTwoFactorAuth, setSupportUser, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Principal
hasAdminRole
-
Constructor Details
-
AnonymousRolePrincipal
public AnonymousRolePrincipal()
-
-
Method Details
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfacePrincipal- Overrides:
isAnonymousin classModifiablePrincipal
-
getName
- Specified by:
getNamein interfacePrincipal- Overrides:
getNamein classModifiablePrincipal
-
setName
- Specified by:
setNamein interfacePrincipal- Overrides:
setNamein classModifiablePrincipal- Throws:
UnauthorizedException
-