Class XsuaaOAuth2PropertySupplier

java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.DefaultOAuth2PropertySupplier
com.sap.cds.services.utils.destination.XsuaaOAuth2PropertySupplier
All Implemented Interfaces:
com.sap.cloud.sdk.cloudplatform.connectivity.OAuth2PropertySupplier

public class XsuaaOAuth2PropertySupplier extends com.sap.cloud.sdk.cloudplatform.connectivity.DefaultOAuth2PropertySupplier
Dedicated OAuth2PropertySupplier which parses service bindings of type xsuaa. As these bindings only provide credentials, but no service url, the service url can be dynamically provided via the class XsuaaOAuth2PropertySupplier.UrlOptions. If a caller does not provide a XsuaaOAuth2PropertySupplier.UrlOptions, an exception will be thrown.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields inherited from class com.sap.cloud.sdk.cloudplatform.connectivity.DefaultOAuth2PropertySupplier

    credentials, DEFAULT_UAA_CREDENTIAL_PATH, options
  • Constructor Summary

    Constructors
    Constructor
    Description
    XsuaaOAuth2PropertySupplier(com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationOptions options)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static void
     

    Methods inherited from class com.sap.cloud.sdk.cloudplatform.connectivity.DefaultOAuth2PropertySupplier

    getClientIdentity, getCredential, getCredentialOrThrow, getOAuthCredential, getOAuthCredentialOrThrow, getOAuthPropertyPath, getTokenUri, isOAuth2Binding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XsuaaOAuth2PropertySupplier

      public XsuaaOAuth2PropertySupplier(com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationOptions options)
  • Method Details

    • initialize

      public static void initialize()
    • getServiceUri

      public URI getServiceUri()
      Specified by:
      getServiceUri in interface com.sap.cloud.sdk.cloudplatform.connectivity.OAuth2PropertySupplier
      Overrides:
      getServiceUri in class com.sap.cloud.sdk.cloudplatform.connectivity.DefaultOAuth2PropertySupplier