public void setSaltStyle(SaltStyle saltStyle) {
        this.saltStyle = saltStyle;
        if (saltStyle == SaltStyle.COLUMN && authenticationQuery.equals(DEFAULT_AUTHENTICATION_QUERY)) {
            authenticationQuery = DEFAULT_SALTED_AUTHENTICATION_QUERY;
        }
    }
Sets the salt style.  See {@link #saltStyle}.

@param saltStyle new SaltStyle to set.
core/src/main/java/org/apache/shiro/realm/jdbc/JdbcRealm.java