Enum Class AuthenticationChallenge.Type

java.lang.Object
java.lang.Enum<AuthenticationChallenge.Type>
com.esri.arcgisruntime.security.AuthenticationChallenge.Type
All Implemented Interfaces:
Serializable, Comparable<AuthenticationChallenge.Type>, Constable
Enclosing class:
AuthenticationChallenge

public static enum AuthenticationChallenge.Type extends Enum<AuthenticationChallenge.Type>
Specifies the different types of authentication challenges that can be raised.
Since:
100.0.0
  • Enum Constant Details

    • USER_CREDENTIAL_CHALLENGE

      public static final AuthenticationChallenge.Type USER_CREDENTIAL_CHALLENGE
      This challenge is raised when a standard username/password credential is required to satisfy an HTTP or Token secured endpoint.
      Since:
      100.0.0
    • SELF_SIGNED_CHALLENGE

      public static final AuthenticationChallenge.Type SELF_SIGNED_CHALLENGE
      This challenge is raised when an endpoint presents an SSL certificate that is self signed or signed by an unknown root authority (for example an enterprise root certificate).
      Since:
      100.0.0
    • CERTIFICATE_CHALLENGE

      public static final AuthenticationChallenge.Type CERTIFICATE_CHALLENGE
      This challenge is raised when an endpoint requires a client certificate to be presented.
      Since:
      100.0.0
    • OAUTH_CREDENTIAL_CHALLENGE

      public static final AuthenticationChallenge.Type OAUTH_CREDENTIAL_CHALLENGE
      This challenge is raised when an endpoint is Token secured and requires a credential. This differs from the USER_CREDENTIAL_CHALLENGE in that it will only be issued if the calling portal (or the portal which federates the calling service) supports OAuth and you have set both a redirect URI and a client ID for the calling/federating portal in the AuthenticationManager.
      Since:
      100.0.0
    • UNKNOWN

      public static final AuthenticationChallenge.Type UNKNOWN
      This value is used when the type of the authentication challenge cannot be determined from the available information (namely the exception that was raised).
      Since:
      100.0.0
  • Method Details

    • values

      public static AuthenticationChallenge.Type[] 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 AuthenticationChallenge.Type 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