public enum JwtManagerHolder extends java.lang.Enum<JwtManagerHolder> implements JwtManager
Holds the JWT Configuration for the running session of KEEP
JwtManager.JwtNotSetupException| Enum Constant and Description | 
|---|
INSTANCE
Singleton for JwtManager 
 | 
| Modifier and Type | Method and Description | 
|---|---|
io.vertx.core.Future<java.lang.String> | 
extractScopes(java.lang.String jwt)
Extracts the Scope string a valid JWT Token might present, 
 | 
io.vertx.core.Future<KeepUser> | 
extractUser(java.lang.String jwt)
Turns a JWT string into a Domino user based on a JWT Claim 
 | 
io.vertx.ext.auth.jwt.JWTAuth | 
getAuthprovider()  | 
java.util.Optional<io.vertx.core.json.JsonObject> | 
getTokenForUserSync(java.lang.String username,
                   java.lang.String scopes)  | 
io.vertx.core.Future<io.vertx.ext.auth.jwt.JWTAuth> | 
initializeAuthprovider(io.vertx.core.Vertx vertx,
                      io.vertx.core.json.JsonObject systemConfig)  | 
boolean | 
isAllowJwtMail()  | 
void | 
setAuthProvider(io.vertx.ext.auth.jwt.JWTAuth newProvider)
Replace the authentication provider, used for tests only 
 | 
static JwtManagerHolder | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static JwtManagerHolder[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfextractScopeSet, extractUserUnverified, getTokenForUser, hasDecryptScope, timeToExpirypublic static final JwtManagerHolder INSTANCE
public static JwtManagerHolder[] values()
for (JwtManagerHolder c : JwtManagerHolder.values()) System.out.println(c);
public static JwtManagerHolder valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic io.vertx.core.Future<java.lang.String> extractScopes(java.lang.String jwt)
JwtManagerExtracts the Scope string a valid JWT Token might present,
extractScopes in interface JwtManagerjwt - The JWT Tokenpublic io.vertx.core.Future<KeepUser> extractUser(@Nonnull java.lang.String jwt)
Turns a JWT string into a Domino user based on a JWT Claim
extractUser in interface JwtManagerjwt - the JWT tokenpublic io.vertx.ext.auth.jwt.JWTAuth getAuthprovider()
                                              throws JwtManager.JwtNotSetupException
getAuthprovider in interface JwtManagerJwtManager.JwtNotSetupExceptionpublic java.util.Optional<io.vertx.core.json.JsonObject> getTokenForUserSync(java.lang.String username,
                                                                             java.lang.String scopes)
getTokenForUserSync in interface JwtManagerusername - scopes - public io.vertx.core.Future<io.vertx.ext.auth.jwt.JWTAuth> initializeAuthprovider(io.vertx.core.Vertx vertx,
                                                                                  io.vertx.core.json.JsonObject systemConfig)
initializeAuthprovider in interface JwtManagerpublic boolean isAllowJwtMail()
isAllowJwtMail in interface JwtManagerpublic void setAuthProvider(io.vertx.ext.auth.jwt.JWTAuth newProvider)
JwtManagerReplace the authentication provider, used for tests only
setAuthProvider in interface JwtManager