Package com.atlassian.oauth2.client.api
Interface ClientConfiguration
- All Known Implementing Classes:
ClientConfigurationEntity
public interface ClientConfiguration
Configuration for the OAuth 2 flow providing details on the
provider and required values in order to complete the flow.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the authorization endpoint url for the OAuth 2 flow.JSON client certificate for authentication.Returns the grant type for the OAuth 2 flow.
-
Method Details
-
getGrantType
Returns the grant type for the OAuth 2 flow. Defaults toGrantType.AUTHORIZATION_CODE_GRANT.- Returns:
- the grant type
-
getProviderType
-
getClientId
-
getClientSecret
- Returns:
- the client secret. Will be an empty string if the client certificate is used instead
-
getClientCertificate
JSON client certificate for authentication. For now only Google Client Credentials is supported- Returns:
- the base 64 encoded certificate
-
getAuthorizationEndpoint
Returns the authorization endpoint url for the OAuth 2 flow.- Returns:
- the authorization endpoint url or empty string when grant type does not require authorization.
- See Also:
-
getTokenEndpoint
-
getScopes
-
getCustomParams
- Returns:
- custom parameters to be sent to the authorization server
- Since:
- 4.1.0
-