public final class AuthenticationHandlerUtil
extends java.lang.Object
AuthenticationHandler.| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
checkAuthScheme(java.lang.String scheme) |
This method checks if the specified HTTP authentication
scheme
value is valid. |
static java.lang.String |
getAuthenticationHandlerClassName(java.lang.String authHandler) |
This method provides an instance of
AuthenticationHandler based on
specified authHandlerName. |
static boolean |
matchAuthScheme(java.lang.String scheme,
java.lang.String auth) |
This method checks if the specified
authToken belongs to the
specified HTTP authentication scheme. |
public static java.lang.String getAuthenticationHandlerClassName(java.lang.String authHandler)
AuthenticationHandler based on
specified authHandlerName.authHandler - The short-name (or fully qualified class name) of the
authentication handler.public static java.lang.String checkAuthScheme(java.lang.String scheme)
scheme
value is valid.scheme - HTTP authentication scheme to be checkedjava.lang.IllegalArgumentException - In case the specified value is not a valid
HTTP authentication scheme.public static boolean matchAuthScheme(java.lang.String scheme,
java.lang.String auth)
authToken belongs to the
specified HTTP authentication scheme.scheme - HTTP authentication scheme to be checkedauth - Authentication header value which is to be compared with the
authentication scheme.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.