Class BasicAuthentication

java.lang.Object
com.appliedolap.essbase.impl.BasicAuthentication
All Implemented Interfaces:
EssAuthentication

public class BasicAuthentication extends Object implements EssAuthentication
HTTP Basic on every request, never establishing a session.
  • Constructor Details

    • BasicAuthentication

      public BasicAuthentication(String username, String password)
  • Method Details

    • authorizationHeader

      public String authorizationHeader()
      Description copied from interface: EssAuthentication
      The value for the Authorization header, or null to send none. Null is meaningful rather than a degenerate case - a cookie-borne session needs no Authorization header.
      Specified by:
      authorizationHeader in interface EssAuthentication
    • username

      public Optional<String> username()
      Description copied from interface: EssAuthentication
      The user being authenticated as, where this strategy knows it.

      Empty for a strategy that only carries a session or a token: those identify a user to the server without the client necessarily knowing who it is. A caller that needs the name regardless has to ask the server - but should prefer this, because asking is a round trip and, on Essbase 26.1, GET /session answers 500.

      Specified by:
      username in interface EssAuthentication