/** * Returns the validation date, if returned by the server. */ @CheckForNull public Instant getValidated() { return getJSON().get(KEY_VALIDATED).map(Value::asInstant).orElse(null); }
/** * Returns the validation date, if returned by the server. */ @CheckForNull public Instant getValidated() { return getJSON().get(KEY_VALIDATED).map(Value::asInstant).orElse(null); }
/** * Returns the challenge type by name (e.g. "http-01"). */ public String getType() { return getJSON().get(KEY_TYPE).asString(); }
/** * Returns the current status of the challenge. * <p> * Possible values are: {@link Status#PENDING}, {@link Status#PROCESSING}, * {@link Status#VALID}, {@link Status#INVALID}. */ public Status getStatus() { return getJSON().get(KEY_STATUS).asStatus(); }
/** * Returns the challenge type by name (e.g. "http-01"). */ public String getType() { return getJSON().get(KEY_TYPE).asString(); }
/** * Returns the current status of the challenge. * <p> * Possible values are: {@link Status#PENDING}, {@link Status#PROCESSING}, * {@link Status#VALID}, {@link Status#INVALID}. */ public Status getStatus() { return getJSON().get(KEY_STATUS).asStatus(); }
/** * Returns a reason why the challenge has failed in the past, if returned by the * server. If there are multiple errors, they can be found in * {@link Problem#getSubProblems()}. */ @CheckForNull public Problem getError() { return getJSON().get(KEY_ERROR) .map(it -> it.asProblem(getLocation())) .orElse(null); }
/** * Returns a reason why the challenge has failed in the past, if returned by the * server. If there are multiple errors, they can be found in * {@link Problem#getSubProblems()}. */ @CheckForNull public Problem getError() { return getJSON().get(KEY_ERROR) .map(it -> it.asProblem(getLocation())) .orElse(null); }