@ProviderType public static final class AuthenticationStrategy.OAuth2 extends Object implements AuthenticationStrategy
AuthenticationStrategy.BasicUserNamePassword, AuthenticationStrategy.ClientCertificateAuthentication, AuthenticationStrategy.Kerberos, AuthenticationStrategy.OAuth2
Modifier and Type | Method and Description |
---|---|
TypedProperties |
getAuthenticationConfiguration() |
static AuthenticationStrategy.OAuth2 |
of(String accessToken)
A factory method that creates an instance of
OAuth2 from the specified token. |
static AuthenticationStrategy.OAuth2 |
of(String accessToken,
String idToken)
A factory method that creates an instance of
OAuth2 from the specified access token
and OIDC ID token. |
AuthenticationStrategy.OAuth2 |
withIssuerIdentifier(String issuerIdentifier)
A factory method to configure an optional issuer identifier.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
public TypedProperties getAuthenticationConfiguration()
public static AuthenticationStrategy.OAuth2 of(String accessToken)
OAuth2
from the specified token.accessToken
- the OAuth2.0 access token/OIDC access tokenOAuth2
public static AuthenticationStrategy.OAuth2 of(String accessToken, String idToken)
OAuth2
from the specified access token
and OIDC ID token.accessToken
- the OAuth2.0 access token/OIDC access tokenidToken
- the OIDC ID tokenOAuth2
public AuthenticationStrategy.OAuth2 withIssuerIdentifier(String issuerIdentifier)
issuerIdentifier
- the OAuth2.0 issuer identifierOAuth2
Copyright 2019-2024 Solace Corporation. All rights reserved.