Class XsuaaDefaultEndpoints
- java.lang.Object
-
- com.sap.cloud.security.xsuaa.client.XsuaaDefaultEndpoints
-
- All Implemented Interfaces:
OAuth2ServiceEndpointsProvider
public class XsuaaDefaultEndpoints extends Object implements OAuth2ServiceEndpointsProvider
-
-
Constructor Summary
Constructors Constructor Description XsuaaDefaultEndpoints(OAuth2ServiceConfiguration config)Creates a new XsuaaDefaultEndpoints.XsuaaDefaultEndpoints(String baseUri)Deprecated.gets removed with the major release 3.0.0 Use insteadXsuaaDefaultEndpoints(String, String)XsuaaDefaultEndpoints(String baseUri, String certUri)Creates a new XsuaaDefaultEndpoints.XsuaaDefaultEndpoints(URI baseUri)Deprecated.gets removed with the major release 3.0.0 Use insteadXsuaaDefaultEndpoints(String, String)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetAuthorizeEndpoint()Returns authorize endpoint URI.URIgetJwksUri()Returns Jwt Key Set URI (JWKS) as specified in /.well-known/openid-configuration.URIgetTokenEndpoint()Returns token endpoint URI.
-
-
-
Constructor Detail
-
XsuaaDefaultEndpoints
@Deprecated public XsuaaDefaultEndpoints(URI baseUri)
Deprecated.gets removed with the major release 3.0.0 Use insteadXsuaaDefaultEndpoints(String, String)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.
-
XsuaaDefaultEndpoints
public XsuaaDefaultEndpoints(@Nonnull String baseUri, @Nullable String certUri)
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
public XsuaaDefaultEndpoints(@Nonnull OAuth2ServiceConfiguration config)
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.
-
XsuaaDefaultEndpoints
@Deprecated public XsuaaDefaultEndpoints(String baseUri)
Deprecated.gets removed with the major release 3.0.0 Use insteadXsuaaDefaultEndpoints(String, String)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.
-
-
Method Detail
-
getTokenEndpoint
public URI 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
public URI 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
public URI 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
-
-