public class C2Provider extends java.lang.Object implements IAuthProvider
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SESSIONS_PER_USER |
Constructor and Description |
---|
C2Provider(org.vertx.java.core.Vertx vertx,
com.google.common.cache.Cache<java.lang.String,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) |
void |
ping(java.lang.String sessionId,
AsyncHandler<java.lang.Boolean> handler) |
void |
reload(java.lang.String sessionId) |
void |
sessionId(ExternalCreds krbCreds,
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 MAX_SESSIONS_PER_USER
public C2Provider(org.vertx.java.core.Vertx vertx, com.google.common.cache.Cache<java.lang.String,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 krbCreds, 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 void ping(java.lang.String sessionId, AsyncHandler<java.lang.Boolean> handler)
ping
in interface IAuthProvider
public 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.