@Override
    public int hashCode() {
        return (principals != null ? principals.hashCode() : 0);
    }
Returns the hashcode of the internal {@link #getPrincipals() principals} instance.

@return the hashcode of the internal {@link #getPrincipals() principals} instance.
core/src/main/java/org/apache/shiro/authc/SimpleAuthenticationInfo.java