Package ch.tocco.nice2.security.spi
Class AnonymousRolePrincipal
java.lang.Object
ch.tocco.nice2.security.spi.ModifiablePrincipal
ch.tocco.nice2.security.spi.AnonymousRolePrincipal
- All Implemented Interfaces:
Principal
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ch.tocco.nice2.security.spi.ModifiablePrincipal
addRole, getAttribute, getAttributeKeys, getAttributes, getPrimaryKey, getRoles, hasRole, isSupportUser, removeRole, requiresTwoFactorAuth, setAttribute, setPk, setRequiresTwoFactorAuth, setSupportUser, toString
-
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
-