Enum Class AuthenticationType

java.lang.Object
java.lang.Enum<AuthenticationType>
com.sap.cloud.sdk.cloudplatform.connectivity.AuthenticationType
All Implemented Interfaces:
Serializable, Comparable<AuthenticationType>, Constable

public enum AuthenticationType extends Enum<AuthenticationType>
Enum representing different ways a user may be authenticated .
  • Enum Constant Details

    • NO_AUTHENTICATION

      public static final AuthenticationType NO_AUTHENTICATION
      NoAuthentication
    • BASIC_AUTHENTICATION

      public static final AuthenticationType BASIC_AUTHENTICATION
      BasicAuthentication
    • PRINCIPAL_PROPAGATION

      public static final AuthenticationType PRINCIPAL_PROPAGATION
      PrincipalPropagation
    • CLIENT_CERTIFICATE_AUTHENTICATION

      public static final AuthenticationType CLIENT_CERTIFICATE_AUTHENTICATION
      ClientCertificateAuthentication
    • OAUTH2_CLIENT_CREDENTIALS

      public static final AuthenticationType OAUTH2_CLIENT_CREDENTIALS
      OAuth2ClientCredentials
    • OAUTH2_SAML_BEARER_ASSERTION

      public static final AuthenticationType OAUTH2_SAML_BEARER_ASSERTION
      OAuth2SAMLBearerAssertion
    • OAUTH2_USER_TOKEN_EXCHANGE

      public static final AuthenticationType OAUTH2_USER_TOKEN_EXCHANGE
      OAuth2UserTokenExchange
    • OAUTH2_JWT_BEARER

      public static final AuthenticationType OAUTH2_JWT_BEARER
      OAuth2JWTBearer
    • SAP_ASSERTION_SSO

      public static final AuthenticationType SAP_ASSERTION_SSO
      SAPAssertionSSO
    • OAUTH2_PASSWORD

      public static final AuthenticationType OAUTH2_PASSWORD
      OAuth2Password
    • SAML_ASSERTION

      public static final AuthenticationType SAML_ASSERTION
      SAML Assertion
    • OAUTH2_TECHNICAL_USER_PROPAGATION

      public static final AuthenticationType OAUTH2_TECHNICAL_USER_PROPAGATION
      OAuth2TechnicalUserPropagation
    • TOKEN_FORWARDING

      public static final AuthenticationType TOKEN_FORWARDING
      SDK specific authentication type to forward a given current Authentication Token directly to the destination
  • Method Details

    • values

      public static AuthenticationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AuthenticationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AuthenticationType>
    • ofIdentifier

      @Nonnull public static AuthenticationType ofIdentifier(@Nonnull String identifier) throws IllegalArgumentException
      Returns the AuthenticationType which equals the given identifier.
      Parameters:
      identifier - The identifier to get a AuthenticationType for.
      Returns:
      The matching AuthenticationType.
      Throws:
      IllegalArgumentException - If the given identifier does not map to a AuthenticationType.
    • ofIdentifierOrDefault

      @Nonnull public static AuthenticationType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull AuthenticationType defaultAuthenticationType)
      Returns the AuthenticationType which equals the given identifier, or the defaultAuthenticationType in case there is none.
      Parameters:
      identifier - The identifier to get a AuthenticationType for.
      defaultAuthenticationType - The AuthenticationType to return if no matching AuthenticationType could be found.
      Returns:
      The matching AuthenticationType or the default, if none is matching.
    • getIdentifier

      public String getIdentifier()