public final class OAuthUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
createBaseWwwAuthenticateErrorHeaderValue(String realm,
Set<String> scopes,
String error,
String errorDescription,
String errorUri,
StringBuilder builder)
Returns the header value for the WWW-Authenticate header defined in RFC6750.
|
static String |
createWwwAuthenticateErrorHeaderValue(Exchange exchange,
Set<String> scopes,
String error,
String errorDescription,
String errorUri)
Returns the header value for the WWW-Authenticate header defined in RFC6750.
|
static String |
createWwwAuthenticateErrorHeaderValue(String realm,
Set<String> scopes,
String error,
String errorDescription,
String errorUri)
Returns the header value for the WWW-Authenticate header defined in RFC6750.
|
public static String createWwwAuthenticateErrorHeaderValue(String realm, Set<String> scopes, String error, String errorDescription, String errorUri)
realm - the realm associated with the OAuth token that would be required for accessscopes - the required scopes to add to the WWW-Authenticate header, must not be nullerror - the error as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullerrorDescription - the error_description as outlined in RFC6750 to add to the WWW-Authenticate header, can
be nullerrorUri - the error_uri as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullcreateWwwAuthenticateErrorHeaderValue(Exchange, Set, String, String, String) should be
used when the realm from the application is required.public static void createBaseWwwAuthenticateErrorHeaderValue(String realm, Set<String> scopes, String error, String errorDescription, String errorUri, StringBuilder builder)
realm - the realm associated with the OAuth token that would be required for accessscopes - the required scopes to add to the WWW-Authenticate header, must not be nullerror - the error as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullerrorDescription - the error_description as outlined in RFC6750 to add to the WWW-Authenticate header, can
be nullerrorUri - the error_uri as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullbuilder - a base StringBuilder that represents the auth-scheme for the WWW-Authenticate header
createWwwAuthenticateErrorHeaderValue(Exchange, Set, String, String, String) should be
used when the realm from the application is required.public static String createWwwAuthenticateErrorHeaderValue(Exchange exchange, Set<String> scopes, String error, String errorDescription, String errorUri)
exchange - the exchange used to retrieve the realm for the current applicationscopes - the required scopes to add to the WWW-Authenticate header, must not be nullerror - the error as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullerrorDescription - the error_description as outlined in RFC6750 to add to the WWW-Authenticate header, can
be nullerrorUri - the error_uri as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullCopyright 2023 Ping Identity Corp. All rights reserved.