class TokenValidationConfig {

    @Override
    public boolean equals(Object other) {
        if (other instanceof TokenValidationConfig) {
            TokenValidationConfig otherConfig = (TokenValidationConfig)other;
            return validatedTokenType.equals(otherConfig.getValidatedTokenType()) &&
                    (invalidateInterimOpenAMSession == otherConfig.invalidateInterimOpenAMSession());
        }
        return false;
    }

    public  TokenValidationConfig(TokenType validatedTokenType, boolean invalidateInterimOpenAMSession);

}