Packagecom.kaazing.gateway.client.security
Classpublic class ChallengeRequest

An immutable object representing the challenge presented by the server when the client accessed the URI represented by a location.

According to RFC 2617,

     challenge   = auth-scheme 1P 1#auth-param
 
so we model the authentication scheme and parameters in this class.

This class is also responsible for detecting and adapting the Application Basic and Application Negotiate authentication schemes into their Basic and Negotiate counterpart authentication schemes.



Public Properties
 PropertyDefined by
  authenticationParameters : String
[read-only] Return the string after the space separator, not including the authentication scheme nor the space itself, or null if no such string exists.
ChallengeRequest
  authenticationScheme : String
[read-only] Return the authentication scheme with which the server is challenging.
ChallengeRequest
  location : String
[read-only] Return the protected URI the access of which triggered this challenge as a String.
ChallengeRequest
Public Methods
 MethodDefined by
  
ChallengeRequest(location:String, challenge:String)
Constructor from the protected URI location triggering the challenge, and an entire server-provided 'WWW-Authenticate:' string.
ChallengeRequest
Property detail
authenticationParametersproperty
authenticationParameters:String  [read-only]

Return the string after the space separator, not including the authentication scheme nor the space itself, or null if no such string exists.

Implementation
    public function get authenticationParameters():String
authenticationSchemeproperty 
authenticationScheme:String  [read-only]

Return the authentication scheme with which the server is challenging.

Implementation
    public function get authenticationScheme():String
locationproperty 
location:String  [read-only]

Return the protected URI the access of which triggered this challenge as a String.

For some authentication schemes, the production of a response to the challenge may require access to the location of the URI triggering the challenge.

Implementation
    public function get location():String
Constructor detail
ChallengeRequest()constructor
public function ChallengeRequest(location:String, challenge:String)

Constructor from the protected URI location triggering the challenge, and an entire server-provided 'WWW-Authenticate:' string.

Parameters
location:String — the protected URI location triggering the challenge
 
challenge:String — an entire server-provided 'WWW-Authenticate:' string