public interface JwtManager
Modifier and Type | Interface and Description |
---|---|
static class |
JwtManager.JwtNotSetupException
Manages our handling of JWT elements
|
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Future<java.lang.String> |
extractScopes(java.lang.String jwtToken)
Extracts the Scope string a valid JWT Token might present,
|
default io.vertx.core.Future<java.util.Set<java.lang.String>> |
extractScopeSet(java.lang.String jwtToken)
Extracts the Scope as set a valid JWT Token might present,
|
io.vertx.core.Future<KeepUser> |
extractUser(java.lang.String jwt)
Extracts a Domino user with its information and permissions from a JWT Token.
|
default java.util.Optional<io.vertx.core.json.JsonObject> |
extractUserUnverified(java.lang.String claim)
Extracts the inherent claim in JWT Token without verifying the signature
|
io.vertx.ext.auth.jwt.JWTAuth |
getAuthprovider() |
default io.vertx.core.Future<io.vertx.core.json.JsonObject> |
getTokenForUser(java.lang.String username,
java.lang.String scopes) |
java.util.Optional<io.vertx.core.json.JsonObject> |
getTokenForUserSync(java.lang.String username,
java.lang.String scopes) |
default boolean |
hasDecryptScope(java.lang.String claim)
Checks if a user has the decrypt permission
|
io.vertx.core.Future<io.vertx.ext.auth.jwt.JWTAuth> |
initializeAuthprovider(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config) |
boolean |
isAllowJwtMail() |
void |
setAuthProvider(io.vertx.ext.auth.jwt.JWTAuth newProvider)
Replace the authentication provider, used for tests only
|
default long |
timeToExpiry(java.lang.String claim) |
io.vertx.core.Future<java.lang.String> extractScopes(java.lang.String jwtToken)
Extracts the Scope string a valid JWT Token might present,
jwtToken
- The JWT Tokendefault io.vertx.core.Future<java.util.Set<java.lang.String>> extractScopeSet(java.lang.String jwtToken)
Extracts the Scope as set a valid JWT Token might present,
jwtToken
- The JWT Tokenio.vertx.core.Future<KeepUser> extractUser(@Nonnull java.lang.String jwt)
Extracts a Domino user with its information and permissions from a JWT Token. Includes a lookup into the directory or eventually an ACL of an accessed database to get a full picture
jwt
- the JWT Claimdefault java.util.Optional<io.vertx.core.json.JsonObject> extractUserUnverified(java.lang.String claim)
Extracts the inherent claim in JWT Token without verifying the signature
claim
- io.vertx.ext.auth.jwt.JWTAuth getAuthprovider() throws JwtManager.JwtNotSetupException
JwtManager.JwtNotSetupException
default io.vertx.core.Future<io.vertx.core.json.JsonObject> getTokenForUser(java.lang.String username, java.lang.String scopes)
username
- scopes
- java.util.Optional<io.vertx.core.json.JsonObject> getTokenForUserSync(java.lang.String username, java.lang.String scopes)
username
- scopes
- default boolean hasDecryptScope(java.lang.String claim)
Checks if a user has the decrypt permission
claim
- io.vertx.core.Future<io.vertx.ext.auth.jwt.JWTAuth> initializeAuthprovider(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config)
vertx
- config
- boolean isAllowJwtMail()
void setAuthProvider(io.vertx.ext.auth.jwt.JWTAuth newProvider)
Replace the authentication provider, used for tests only
newProvider
- default long timeToExpiry(java.lang.String claim)
claim
-