public class C2Provider extends java.lang.Object implements IAuthProvider
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SESSIONS_PER_USER |
Constructor and Description |
---|
C2Provider(io.vertx.core.Vertx vertx,
CacheBackingStore<SessionData> sessions) |
Modifier and Type | Method and Description |
---|---|
void |
decorate(java.lang.String sessionId,
IDecorableRequest proxyReq) |
boolean |
inRole(java.lang.String sessionId,
java.lang.String role) |
boolean |
isPasswordExpired(java.lang.String sessionId) |
java.util.concurrent.CompletableFuture<java.lang.Void> |
logout(java.lang.String sessionId) |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
ping(java.lang.String sessionId)
Ping core
|
void |
reload(java.lang.String sessionId) |
void |
sessionId(ExternalCreds externalCreds,
java.util.List<java.lang.String> remoteIps,
AsyncHandler<java.lang.String> handler) |
void |
sessionId(java.lang.String loginAtDomain,
java.lang.String password,
boolean privateComputer,
java.util.List<java.lang.String> remoteIps,
AsyncHandler<java.lang.String> handler) |
java.util.concurrent.CompletableFuture<java.lang.Void> |
updatePassword(java.lang.String sessionId,
java.lang.String currentPassword,
java.lang.String newPassword,
java.util.List<java.lang.String> forwadedFor) |
public static final int DEFAULT_MAX_SESSIONS_PER_USER
public C2Provider(io.vertx.core.Vertx vertx, CacheBackingStore<SessionData> sessions)
public void sessionId(java.lang.String loginAtDomain, java.lang.String password, boolean privateComputer, java.util.List<java.lang.String> remoteIps, AsyncHandler<java.lang.String> handler)
sessionId
in interface IAuthProvider
public void sessionId(ExternalCreds externalCreds, java.util.List<java.lang.String> remoteIps, AsyncHandler<java.lang.String> handler)
sessionId
in interface IAuthProvider
public void decorate(java.lang.String sessionId, IDecorableRequest proxyReq)
decorate
in interface IAuthProvider
public java.util.concurrent.CompletableFuture<java.lang.Boolean> ping(java.lang.String sessionId)
IAuthProvider
ping
in interface IAuthProvider
CompletionException
on core connection
failure, false otherwisepublic void reload(java.lang.String sessionId)
reload
in interface IAuthProvider
public boolean inRole(java.lang.String sessionId, java.lang.String role)
inRole
in interface IAuthProvider
public java.util.concurrent.CompletableFuture<java.lang.Void> logout(java.lang.String sessionId)
logout
in interface IAuthProvider
public boolean isPasswordExpired(java.lang.String sessionId)
isPasswordExpired
in interface IAuthProvider
public java.util.concurrent.CompletableFuture<java.lang.Void> updatePassword(java.lang.String sessionId, java.lang.String currentPassword, java.lang.String newPassword, java.util.List<java.lang.String> forwadedFor)
updatePassword
in interface IAuthProvider
Copyright © 2021. All Rights Reserved.