public class Http01Challenge extends TokenChallenge
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
Challenge type name: "http-01"
|
KEY_KEY_AUTHORIZATION, KEY_TOKENKEY_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, respondbind, getError, getJSON, getLocation, getStatus, getType, getValidated, trigger, unmarshall, updategetSession, rebind, setLocation, setSessionpublic static final String TYPE
public Http01Challenge(Session session)
Http01Challenge object.session - Session to bind to.public String getToken()
getToken in class TokenChallengepublic 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 TokenChallengeprotected boolean acceptable(String type)
Challengeacceptable in class Challengetype - Type to checktrue if acceptable, false if notCopyright © 2015–2019. All rights reserved.