public final class CredentialExtractors extends Object
Headers.| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_BASIC_AUTH_HEADER
HTTP Header sent by the client with HTTP basic authentication.
|
| Modifier and Type | Method and Description |
|---|---|
static org.forgerock.util.Function<org.forgerock.http.protocol.Headers,org.forgerock.util.Pair<String,String>,org.forgerock.util.promise.NeverThrowsException> |
httpBasicExtractor()
Creates a function which extracts the user's credentials from the standard HTTP Basic header.
|
static org.forgerock.util.Function<org.forgerock.http.protocol.Headers,org.forgerock.util.Pair<String,String>,org.forgerock.util.promise.NeverThrowsException> |
newCustomHeaderExtractor(String customHeaderUsername,
String customHeaderPassword)
Creates a function which extracts the user's credentials from custom HTTP header in addition of the standard HTTP
Basic one.
|
public static final String HTTP_BASIC_AUTH_HEADER
public static org.forgerock.util.Function<org.forgerock.http.protocol.Headers,org.forgerock.util.Pair<String,String>,org.forgerock.util.promise.NeverThrowsException> httpBasicExtractor()
public static org.forgerock.util.Function<org.forgerock.http.protocol.Headers,org.forgerock.util.Pair<String,String>,org.forgerock.util.promise.NeverThrowsException> newCustomHeaderExtractor(String customHeaderUsername, String customHeaderPassword)
customHeaderUsername - Name of the additional header to check for the user's namecustomHeaderPassword - Name of the additional header to check for the user's passwordCopyright © 2017-2020 Wren Security. All Rights Reserved.