obov

OATH based OTP validator.
Download

obov Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Ricardo Zuasti
  • Publisher web site:

obov Tags


obov Description

OATH based OTP validator. obov is an OATH-based OTP validator. It's a 100% pure Java library that provides simple to use methods (and related utilities) to validate one time passwords generated by OATH compliant devices.ExamplesUsing obov is really easy. The following examples cover the basic usage scenarios; you can browse the complete obov API at http://www.spartanjava.com/obov/api/.HMAC-SHA1 event based validationTo validate an OTP generated by a HMAC-SHA1 event based device (according to RFC 4226), the following code should do: import java.security.InvalidKeyException;import java.security.NoSuchAlgorithmException;import org.manentia.obov.HMACSHA1OTPValidator; public class Test { public static void main(String[] args) { try { System.out.println(new HMACSHA1OTPValidator().validatePassword("94287082", "3132333435363738393031323334353637383930", 1)); } catch (InvalidKeyException e) { e.printStackTrace(); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } }}The validatePassword method receives the generated OTP, the device “secret” (in hexadecimal notation) and the moving factor (ordinal of the password being validated). What's New in This Release: · Methods to generate passwords using the HMAC-SHA1 algorithm · A handy utility method to generate secret keys (seeds) based on any given string


obov Related Software