@Override
    // It would be pretty dumb to use varargs for the credential...
    @SuppressWarnings("PMD.UseVarargs")
    public final boolean validate(final char[] providedPassword, final char[] storedCredential) {

        if (providedPassword == null || storedCredential == null) {
            return false;
        } else {
            return Arrays.equals(providedPassword, storedCredential);
        }
    }
@ Override @ SuppressWarnings ( "PMD.UseVarargs" ) public final boolean validate ( final char [ ] providedPassword , final char [ ] storedCredential ) { if ( providedPassword == null || storedCredential == null ) { return false ; } else { return Arrays . equals ( providedPassword , storedCredential ) ; } }
{@inheritDoc}