Class BasicAuthHelper

java.lang.Object
io.continual.iam.impl.common.BasicAuthHelper

public class BasicAuthHelper extends Object
Web systems implementing RESTful APIs with basic auth can use this helper class to get credentials from the inbound request.
  • Field Details

  • Constructor Details

    • BasicAuthHelper

      public BasicAuthHelper()
  • Method Details

    • readUsernamePasswordCredential

      public static UsernamePasswordCredential readUsernamePasswordCredential(HeaderReader hr)
      Build an UsernamePasswordCredential from an inbound HTTP header.
      Parameters:
      hr - a header reader to isolate this code from the web technology
      Returns:
      username password credential or null if the header is malformed, etc.