Yubico/yubico-java-client — pull request #5 by mrmcd (2013-01-09 16:49:06+00:00)
Title: Fix for issue #4 to throw IllegalArgumentException on bad data

Fixes issue #4.

getPublicId and isValidOTPFormat not fail more gracefully on bad input instead of throwing NPE or array index exceptions.