Class DataPlaneAuthenticator.Outcome

java.lang.Object
org.mockserver.authentication.dataplane.DataPlaneAuthenticator.Outcome
Enclosing class:
DataPlaneAuthenticator

public static final class DataPlaneAuthenticator.Outcome extends Object
Result of an authentication attempt. isAuthenticated() true means proceed; false means the caller must write a 401 with the supplied wwwAuthenticate() challenge (which may be null for the API-key-only configuration).
  • Method Details

    • isAuthenticated

      public boolean isAuthenticated()
    • wwwAuthenticate

      public String wwwAuthenticate()
      Returns:
      the WWW-Authenticate challenge to set on the 401 response, or null when there is no standard challenge (API-key-only configuration).