android - Validate IBAN using org.apache.commons.validator -


in android project have edittext user can insert iban

i validate iban this, using org.apache.commons.validator

ibancheckdigit ibancheckdigit = new ibancheckdigit(); boolean validiban = ibancheckdigit.isvalid(textiban.gettext().tostring()); 

but 'isvalid" returns true when write things "jjjhh" or "asdasd" there better way validate iban ?

ibancheckdigit not check format of iban number, check digits. iban length, structure, etc. you. alternative, use iban4j validates structure, length, etc. too.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -