samdjstevens / java-totp

A java library for implementing Time-based One Time Passwords for Multi-Factor Authentication.
MIT License
424 stars 103 forks source link

CodeGenerator interface not accessible #6

Closed OlivierJaquemet closed 4 years ago

OlivierJaquemet commented 4 years ago

The sample code in the documentation indicates the following usage :

CodeGenerator codeGenerator = new DefaultCodeGenerator();

Problem : CodeGenerator interface is package protected, thus it cannot be used.

(Obvious) Workaround : DefaultCodeGenerator codeGenerator = new DefaultCodeGenerator();