oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2TokenValidatorResult.java
public static OAuth2TokenValidatorResult failure(Collection<OAuth2Error> errors) {
		if (errors.isEmpty()) {
			return NO_ERRORS;
		}

		return new OAuth2TokenValidatorResult(errors);
	}
public static OAuth2TokenValidatorResult failure(Collection<OAuth2Error> errors) {
		if (errors.isEmpty()) {
			return NO_ERRORS;
		}

		return new OAuth2TokenValidatorResult(errors);
	}
public static OAuth2TokenValidatorResult failure ( Collection < OAuth2Error > errors ) { if ( errors . isEmpty ( ) ) { return NO_ERRORS ; } return new OAuth2TokenValidatorResult ( errors ) ; }
Construct a failure {@link OAuth2TokenValidatorResult} with the provided detail

@param errors the list of errors
@return an {@link OAuth2TokenValidatorResult} with the errors specified
Construct a failure { @link OAuth2TokenValidatorResult } with the provided detail