public class Authenticator extends Object
LoginContext
for the choosen realm.Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATION_SCHEME_BASIC |
static String |
HEADER_AUTHORIZATION |
Constructor and Description |
---|
Authenticator() |
Modifier and Type | Method and Description |
---|---|
static AuthenticateResult |
authenticate(AuthenticationConfiguration authConfiguration,
javax.servlet.http.HttpServletRequest request,
Consumer<Subject> callback) |
static AuthenticateResult |
authenticate(AuthenticationConfiguration authConfiguration,
javax.servlet.http.HttpServletRequest request,
String username,
String password,
Consumer<Subject> callback) |
static AuthInfo |
getAuthorizationHeader(javax.servlet.http.HttpServletRequest request) |
static void |
logout(AuthenticationConfiguration authConfiguration,
Subject subject) |
public static final String HEADER_AUTHORIZATION
public static final String AUTHENTICATION_SCHEME_BASIC
public static AuthInfo getAuthorizationHeader(javax.servlet.http.HttpServletRequest request)
public static void logout(AuthenticationConfiguration authConfiguration, Subject subject)
public static AuthenticateResult authenticate(AuthenticationConfiguration authConfiguration, javax.servlet.http.HttpServletRequest request, Consumer<Subject> callback)
public static AuthenticateResult authenticate(AuthenticationConfiguration authConfiguration, javax.servlet.http.HttpServletRequest request, String username, String password, Consumer<Subject> callback)
Copyright © 2021 JBoss by Red Hat. All rights reserved.