public class Http01Challenge extends TokenChallenge
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
Challenge type name: "http-01"
|
KEY_KEY_AUTHORIZATION, KEY_TOKEN
KEY_ERROR, KEY_STATUS, KEY_TYPE, KEY_URI, KEY_VALIDATED
Constructor and Description |
---|
Http01Challenge(Session session)
Creates a new generic
Http01Challenge object. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptable(String type)
Checks if the type is acceptable to this challenge.
|
String |
getAuthorization()
Returns the authorization string to be used for the response.
|
String |
getToken()
Returns the token to be used for this challenge.
|
authorize, computeAuthorization, respond
bind, getError, getJSON, getLocation, getStatus, getType, getValidated, trigger, unmarshall, update
getSession, rebind, setLocation, setSession
public static final String TYPE
public Http01Challenge(Session session)
Http01Challenge
object.session
- Session
to bind to.public String getToken()
getToken
in class TokenChallenge
public String getAuthorization()
NOTE: The response file must only contain the returned String (UTF-8 or ASCII encoded). There must not be any other leading or trailing characters (like white-spaces or line breaks). Otherwise the challenge will fail.
getAuthorization
in class TokenChallenge
protected boolean acceptable(String type)
Challenge
acceptable
in class Challenge
type
- Type to checktrue
if acceptable, false
if notCopyright © 2015–2019. All rights reserved.