Class XsuaaUtils

java.lang.Object
com.sap.cds.services.utils.XsuaaUtils

public class XsuaaUtils extends Object
  • Constructor Details

    • XsuaaUtils

      public XsuaaUtils(CdsRuntime runtime)
  • Method Details

    • getXsuaaServiceBindings

      public List<com.sap.cloud.environment.servicebinding.api.ServiceBinding> getXsuaaServiceBindings()
      Returns:
      All found XSUAA bindings. In case a specific service binding is chosen via cds.security.xsuaa.binding, the list contains only this binding if available.
    • getIasServiceBindings

      public List<com.sap.cloud.environment.servicebinding.api.ServiceBinding> getIasServiceBindings()
      Returns:
      All found identity service (IAS) bindings. In case a specific service binding is chosen via cds.security.identity.binding, * the list contains only this binding if available.
    • configuredAuthenticationType

      public XsuaaUtils.AuthenticationType configuredAuthenticationType()
      Returns:
      The authentication type configured by the application
    • xsuaaAuthenticationConfigured

      public boolean xsuaaAuthenticationConfigured()
      Returns:
      true if authentication should be handled via 'cds-feature-xsuaa'
    • identityAuthenticationConfigured

      public boolean identityAuthenticationConfigured()
      Returns:
      true if authentication should be handled via 'cds-feature-identity'