Class AnonymousPrincipal
java.lang.Object
ch.tocco.nice2.security.spi.AnonymousPrincipal
- All Implemented Interfaces:
Principal
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String key) getName()getRoles()booleanbooleanbooleanbooleanremoveRole(Role role) booleanvoidsetAttribute(String key, Object value) voidtoString()
-
Field Details
-
INSTANCE
-
-
Method Details
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfacePrincipal
-
requiresTwoFactorAuth
public boolean requiresTwoFactorAuth()- Specified by:
requiresTwoFactorAuthin interfacePrincipal
-
isSupportUser
public boolean isSupportUser()- Specified by:
isSupportUserin interfacePrincipal
-
toString
-
getName
-
setName
- Specified by:
setNamein interfacePrincipal- Throws:
UnauthorizedException
-
getRoles
-
addRole
- Specified by:
addRolein interfacePrincipal- Throws:
UnauthorizedException
-
removeRole
- Specified by:
removeRolein interfacePrincipal- Throws:
UnauthorizedException
-
hasRole
-
setAttribute
- Specified by:
setAttributein interfacePrincipal
-
getAttribute
- Specified by:
getAttributein interfacePrincipal
-
getAttributeKeys
- Specified by:
getAttributeKeysin interfacePrincipal
-
getPrimaryKey
- Specified by:
getPrimaryKeyin interfacePrincipal
-