Class Headers.WwwAuthenticate

java.lang.Object
com.inrupt.client.Headers.WwwAuthenticate
Enclosing class:
Headers

public static final class Headers.WwwAuthenticate extends Object
Part of the HTTP Challenge and Response authentication framework, this class represents a challenge object as represented in a WWW-Authenticate Response Header.
See Also:
  • Method Details

    • getChallenges

      public List<Challenge> getChallenges()
      Get the challenges associated with this HTTP authentication interaction.
      Returns:
      the challenges
    • of

      public static Headers.WwwAuthenticate of(Challenge... challenges)
      Create a new WWW-Authenticate object with a collection of challenges.
      Parameters:
      challenges - the challenges
      Returns:
      the www-authenticate object
    • of

      public static Headers.WwwAuthenticate of(List<Challenge> challenges)
      Create a new WWW-Authenticate object with a collection of challenges.
      Parameters:
      challenges - the challenges
      Returns:
      the www-authenticate object
    • parse

      public static Headers.WwwAuthenticate parse(String... headers)
      Parse header strings into a list of Challenge objects.
      Parameters:
      headers - the header strings
      Returns:
      the challenge objects