Class XsuaaDefaultEndpoints
java.lang.Object
com.sap.cloud.security.xsuaa.client.XsuaaDefaultEndpoints
- All Implemented Interfaces:
OAuth2ServiceEndpointsProvider
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new XsuaaDefaultEndpoints.XsuaaDefaultEndpoints(String baseUri, String certUri) Creates a new XsuaaDefaultEndpoints. -
Method Summary
Modifier and TypeMethodDescriptionReturns authorize endpoint URI.Returns Jwt Key Set URI (JWKS) as specified in /.well-known/openid-configuration.Returns token endpoint URI.
-
Constructor Details
-
XsuaaDefaultEndpoints
Creates a new XsuaaDefaultEndpoints.- Parameters:
baseUri- - the base URI of XSUAA. Based on the base URI the tokenEndpoint, authorize and key set URI (JWKS) will be derived.certUri- - the cert URI of XSUAA. It is required in case of X.509 certificate based authentication.
-
XsuaaDefaultEndpoints
Creates a new XsuaaDefaultEndpoints.- Parameters:
config- - OAuth2ServiceConfiguration of XSUAA. Based on the credential-type from the configuration, the tokenEndpoint URI, authorize and key set URI (JWKS) will be derived.
-
-
Method Details
-
getTokenEndpoint
Description copied from interface:OAuth2ServiceEndpointsProviderReturns token endpoint URI.- Specified by:
getTokenEndpointin interfaceOAuth2ServiceEndpointsProvider- Returns:
- token endpoint, e.g.
https://oauth.server.com/oauth/token
-
getAuthorizeEndpoint
Description copied from interface:OAuth2ServiceEndpointsProviderReturns authorize endpoint URI.- Specified by:
getAuthorizeEndpointin interfaceOAuth2ServiceEndpointsProvider- Returns:
- authorize endpoint, e.g.
https://oauth.server.com/oauth/authorize
-
getJwksUri
Description copied from interface:OAuth2ServiceEndpointsProviderReturns Jwt Key Set URI (JWKS) as specified in /.well-known/openid-configuration.- Specified by:
getJwksUriin interfaceOAuth2ServiceEndpointsProvider- Returns:
- jwks_uri , e.g.
https://oauth.server.com/token_keys
-