public class IbanAndBicValidator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BAD_IBAN_CHECKNUM
Eingabe hat eine falsche Checksum, ist wahrscheinlich nicht gültig.
|
static int |
EU_BIC
Eingabe entspricht dem BIC Format mit gültiger EU Länderkennung, muss
aber trotzdem keinen gültige BIC sein.
|
static int |
EU_IBAN
Eingabe ist gültige IBAn mit gültiger EU Länderkennung.
|
static int |
GOOD_BIC
Eingabe entspricht dem BIC Format.
|
static int |
GOOD_IBAN
Eingabe ist ein gültige IBAN.
|
static int |
NOT_A_BIC
Eingabe ist keine BIC.
|
static int |
NOT_AN_IBAN
Eingabe ist keine IBAN.
|
Constructor and Description |
---|
IbanAndBicValidator() |
Modifier and Type | Method and Description |
---|---|
static int |
isBIC(java.lang.String bic)
very simple formal check on given bic checks if the countrycode is
correct or even european assumes thta a bic is 11 or 8 characters long
and an that the 4. and 5. offset is the country-code
|
static int |
isIBAN(java.lang.String iban)
checks if the given IBAN seems to be an iban with countrycode-check and
validates the checknumber if this validation is allright it is checked
whether the country-code is sorts to european regulations payment area or
not
the higher the returned value the better the IBAN so if you just want to
know if the IBAN is allright but don't care about the european-area you
just do something like this:
if (BankingNumberValidation.isIBAN(iban) >= GOOD_IBAN)
{
... do something
}
|
static int |
isIBANCheckNumberOK(java.lang.String iban)
checks if the given IBAN seems to be an iban (without countrycode-check)
and validates the checknumber this routine is a bit cheap but also fast
since no country-codes are checked
|
public static final int NOT_AN_IBAN
public static final int BAD_IBAN_CHECKNUM
public static final int GOOD_IBAN
public static final int EU_IBAN
public static final int NOT_A_BIC
public static final int GOOD_BIC
public static final int EU_BIC
public static int isIBANCheckNumberOK(java.lang.String iban)
iban
- die zu Überprüfende IBANpublic static int isIBAN(java.lang.String iban)
if (BankingNumberValidation.isIBAN(iban) >= GOOD_IBAN)
{
... do something
}
iban
- iban die zu Überprüfende IBANEUCountryCodes.isIbanEUCountry(String)
public static int isBIC(java.lang.String bic)
bic
-