@@ -82,7 +82,7 @@ public class LDAPDatabase extends ACMEDatabase {
82
82
static final String ATTR_ERROR = "acmeError" ;
83
83
static final String ATTR_EXPIRES = "acmeExpires" ;
84
84
static final String ATTR_IDENTIFIER = "acmeIdentifier" ;
85
- static final String ATTR_NONCE_VALUE = "acmeNonceValue " ;
85
+ static final String ATTR_NONCE_ID = "acmeNonceId " ;
86
86
static final String ATTR_ORDER_ID = "acmeOrderId" ;
87
87
static final String ATTR_STATUS = "acmeStatus" ;
88
88
static final String ATTR_TOKEN = "acmeToken" ;
@@ -223,7 +223,7 @@ public void init() throws Exception {
223
223
}
224
224
225
225
public ACMENonce getNonce (String nonceID ) throws Exception {
226
- String dn = ATTR_NONCE_VALUE + "=" + nonceID + "," + RDN_NONCE + "," + basedn ;
226
+ String dn = ATTR_NONCE_ID + "=" + nonceID + "," + RDN_NONCE + "," + basedn ;
227
227
LDAPEntry entry = ldapGet (dn );
228
228
if (entry == null ) return null ;
229
229
@@ -239,11 +239,11 @@ public ACMENonce getNonce(String nonceID) throws Exception {
239
239
public void addNonce (ACMENonce nonce ) throws Exception {
240
240
LDAPAttribute [] attrs = {
241
241
new LDAPAttribute (ATTR_OBJECTCLASS , OBJ_NONCE ),
242
- new LDAPAttribute (ATTR_NONCE_VALUE , nonce .getID ()),
242
+ new LDAPAttribute (ATTR_NONCE_ID , nonce .getID ()),
243
243
new LDAPAttribute (ATTR_EXPIRES , dateFormat .format (nonce .getExpirationTime ()))
244
244
};
245
245
LDAPAttributeSet attrSet = new LDAPAttributeSet (attrs );
246
- String dn = ATTR_NONCE_VALUE + "=" + nonce .getID () + "," + RDN_NONCE + "," + basedn ;
246
+ String dn = ATTR_NONCE_ID + "=" + nonce .getID () + "," + RDN_NONCE + "," + basedn ;
247
247
LDAPEntry entry = new LDAPEntry (dn , attrSet );
248
248
ldapAdd (entry );
249
249
}
@@ -252,7 +252,7 @@ public ACMENonce removeNonce(String nonceID) throws Exception {
252
252
ACMENonce nonce = getNonce (nonceID );
253
253
if (nonce == null ) return null ;
254
254
255
- String dn = ATTR_NONCE_VALUE + "=" + nonceID + "," + RDN_NONCE + "," + basedn ;
255
+ String dn = ATTR_NONCE_ID + "=" + nonceID + "," + RDN_NONCE + "," + basedn ;
256
256
ldapDelete (dn , OnNoSuchObject .Ignore );
257
257
258
258
return nonce ;
0 commit comments