public final class AuthenticationHandlerUtil extends Object
AuthenticationHandler
.Modifier and Type | Method and Description |
---|---|
static String |
checkAuthScheme(String scheme)
This method checks if the specified HTTP authentication
scheme
value is valid. |
static String |
getAuthenticationHandlerClassName(String authHandler)
This method provides an instance of
AuthenticationHandler based on
specified authHandlerName . |
static boolean |
matchAuthScheme(String scheme,
String auth)
This method checks if the specified
authToken belongs to the
specified HTTP authentication scheme . |
public static String getAuthenticationHandlerClassName(String authHandler)
AuthenticationHandler
based on
specified authHandlerName
.authHandler
- The short-name (or fully qualified class name) of the
authentication handler.public static String checkAuthScheme(String scheme)
scheme
value is valid.scheme
- HTTP authentication scheme to be checkedIllegalArgumentException
- In case the specified value is not a valid
HTTP authentication scheme.public static boolean matchAuthScheme(String scheme, 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 © 2022 Apache Software Foundation. All rights reserved.