diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/Account.java b/acme4j-client/src/main/java/org/shredzone/acme4j/Account.java index 7916631b..098c21d5 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/Account.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/Account.java @@ -38,7 +38,6 @@ import org.shredzone.acme4j.exception.AcmeLazyLoadingException; import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.exception.AcmeRetryAfterException; import org.shredzone.acme4j.exception.AcmeServerException; -import org.shredzone.acme4j.provider.pebble.Pebble; import org.shredzone.acme4j.util.JSON; import org.shredzone.acme4j.util.JSONBuilder; import org.slf4j.Logger; @@ -321,10 +320,7 @@ public class Account extends AcmeResource { .forEach(contacts::add); } - // TODO PEBBLE: returns an empty string as URL - if (!Pebble.workaround()) { - this.orders = json.get(KEY_ORDERS).asURL(); - } + this.orders = json.get(KEY_ORDERS).asURL(); if (json.contains(KEY_STATUS)) { this.status = Status.parse(json.get(KEY_STATUS).asString()); diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/provider/pebble/Pebble.java b/acme4j-client/src/main/java/org/shredzone/acme4j/provider/pebble/Pebble.java deleted file mode 100644 index 59496069..00000000 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/provider/pebble/Pebble.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * acme4j - Java ACME client - * - * Copyright (C) 2017 Richard "Shred" Körber - * http://acme4j.shredzone.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ -package org.shredzone.acme4j.provider.pebble; - -import org.slf4j.LoggerFactory; - -/** - * Check if Pebble workarounds or strict ACME specifications are to be used. - *
- * To enable the Pebble workarounds, pass {@code -Dpebble=true} to the JVM. - *
- * Do not use this class. It will be removed.
- */
-public final class Pebble {
-
- private static final boolean PEBBLE_PROPERTY = Boolean.getBoolean("pebble");
-
- static {
- if (PEBBLE_PROPERTY) {
- LoggerFactory.getLogger(Pebble.class).warn("Pebble workarounds enabled!");
- }
- }
-
- private Pebble() {
- // utility class without constructor
- }
-
- /**
- * @return {@code true} to enable Pebble workarounds, {@code false} for strict ACME
- * specifications.
- */
- public static boolean workaround() {
- return PEBBLE_PROPERTY;
- }
-
-}
diff --git a/acme4j-it/pom.xml b/acme4j-it/pom.xml
index fdd11a05..92aa7c65 100644
--- a/acme4j-it/pom.xml
+++ b/acme4j-it/pom.xml
@@ -174,19 +174,6 @@
-
-
-