public class JWTUser extends AbstractUser
| Constructor and Description |
|---|
JWTUser() |
JWTUser(JsonObject jwtToken,
String permissionsClaimKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
doIsPermitted(String permission,
Handler<AsyncResult<Boolean>> handler) |
JsonObject |
principal()
Get the underlying principal for the User.
|
int |
readFromBuffer(int pos,
Buffer buffer) |
void |
setAuthProvider(AuthProvider authProvider)
Set the auth provider for the User.
|
void |
writeToBuffer(Buffer buff) |
cachePermission, clearCache, isAuthorizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAuthorisedpublic JWTUser()
public JWTUser(JsonObject jwtToken, String permissionsClaimKey)
public JsonObject principal()
User
{
"username", "tim"
}
public void setAuthProvider(AuthProvider authProvider)
UserauthProvider - the AuthProvider - this must be the same type of AuthProvider that originally created the Userpublic void doIsPermitted(String permission, Handler<AsyncResult<Boolean>> handler)
doIsPermitted in class AbstractUserpublic void writeToBuffer(Buffer buff)
writeToBuffer in interface ClusterSerializablewriteToBuffer in class AbstractUserpublic int readFromBuffer(int pos,
Buffer buffer)
readFromBuffer in interface ClusterSerializablereadFromBuffer in class AbstractUserCopyright © 2020. All rights reserved.