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
-
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:
isAnonymous
in interfacePrincipal
- Overrides:
isAnonymous
in classModifiablePrincipal
-
getName
- Specified by:
getName
in interfacePrincipal
- Overrides:
getName
in classModifiablePrincipal
-
setName
- Specified by:
setName
in interfacePrincipal
- Overrides:
setName
in classModifiablePrincipal
- Throws:
UnauthorizedException
-