Package net.thevpc.nhttp.server.security
Class NWebPrincipalSimple
java.lang.Object
net.thevpc.nhttp.server.security.NWebPrincipalSimple
- All Implemented Interfaces:
NWebPrincipal
-
Constructor Summary
ConstructorsConstructorDescriptionNWebPrincipalSimple(NWebUser user) NWebPrincipalSimple(NWebUser user, boolean root) -
Method Summary
-
Constructor Details
-
NWebPrincipalSimple
-
NWebPrincipalSimple
-
-
Method Details
-
getUser
public <T> T getUser()- Specified by:
getUserin interfaceNWebPrincipal
-
isAdmin
public boolean isAdmin()- Specified by:
isAdminin interfaceNWebPrincipal
-
getId
- Specified by:
getIdin interfaceNWebPrincipal
-
getUserName
- Specified by:
getUserNamein interfaceNWebPrincipal
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfaceNWebPrincipal
-