Permalink
Browse files

Minor refactoring to conform to the naming standard. Bumped to 0.8

  • Loading branch information...
1 parent f722315 commit a3ac89b6a4b3322c9b99e34fa34c0b9c3b2caa99 @Ratler committed Aug 10, 2011
View
@@ -24,7 +24,7 @@
<groupId>org.unitedid</groupId>
<artifactId>YubiHSM</artifactId>
- <version>0.7</version>
+ <version>0.8</version>
<packaging>jar</packaging>
<inceptionYear>2011</inceptionYear>
<organization>
@@ -384,7 +384,7 @@ public boolean keyStorageUnlock(String password) throws YubiHSMCommandFailedExce
* @throws YubiHSMCommandFailedException command failed exception
* @throws YubiHSMErrorException error exception
*/
- public int oathHOTPValidateOTP(YubiHSM hsm, int keyHandle, String nonce, String aead, int counter, String otp, int lookAhead) throws YubiHSMCommandFailedException, YubiHSMErrorException, YubiHSMInputException {
+ public int validateOathHOTP(YubiHSM hsm, int keyHandle, String nonce, String aead, int counter, String otp, int lookAhead) throws YubiHSMCommandFailedException, YubiHSMErrorException, YubiHSMInputException {
return OathHOTPCmd.validateOTP(hsm, keyHandle, nonce, aead, counter, otp, lookAhead);
}
@@ -85,7 +85,7 @@ public void testOathHotpValidation() throws YubiHSMCommandFailedException, YubiH
testCodeList.add(new OathHotpCodeMap(31, 30, "026920", 1));
for (OathHotpCodeMap o : testCodeList) {
- assertEquals(o.getExpectedCounter(), hsm.oathHOTPValidateOTP(hsm, keyHandle, nonce, aead, o.getCounter(), o.getOtp(), o.getLookAhead()));
+ assertEquals(o.getExpectedCounter(), hsm.validateOathHOTP(hsm, keyHandle, nonce, aead, o.getCounter(), o.getOtp(), o.getLookAhead()));
}
}

0 comments on commit a3ac89b

Please sign in to comment.