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 Function<org.forgerock.http.protocol.Headers,Pair<String,String>,NeverThrowsException> |
httpBasicExtractor()
Creates a function which extracts the user's credentials from the standard HTTP Basic header.
|
static Function<org.forgerock.http.protocol.Headers,Pair<String,String>,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 Function<org.forgerock.http.protocol.Headers,Pair<String,String>,NeverThrowsException> httpBasicExtractor()
public static Function<org.forgerock.http.protocol.Headers,Pair<String,String>,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 2010-2017 ForgeRock AS.