public final class AuthenticationFactoryOAuth2 extends Object
Authentication instances
for OAuth 2.0 authentication methods.| Constructor and Description |
|---|
AuthenticationFactoryOAuth2() |
| Modifier and Type | Method and Description |
|---|---|
static Authentication |
clientCredentials(URL issuerUrl,
URL credentialsUrl,
String audience)
Authenticate with client credentials.
|
static Authentication |
clientCredentials(URL issuerUrl,
URL credentialsUrl,
String audience,
String scope)
Authenticate with client credentials.
|
public static Authentication clientCredentials(URL issuerUrl, URL credentialsUrl, String audience)
issuerUrl - the issuer URLcredentialsUrl - the credentials URLaudience - the audience identifierpublic static Authentication clientCredentials(URL issuerUrl, URL credentialsUrl, String audience, String scope)
issuerUrl - the issuer URLcredentialsUrl - the credentials URLaudience - the audience identifierscope - An optional field. The value of the scope parameter is expressed as a list of space-delimited,
case-sensitive strings. The strings are defined by the authorization server.
If the value contains multiple space-delimited strings, their order does not matter,
and each string adds an additional access range to the requested scope.
From here: https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.2Copyright © 2017–2021 Apache Software Foundation. All rights reserved.