oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/introspection/NimbusOAuth2TokenIntrospectionClient.java
@Override
	public Map<String, Object> introspect(String token) {
		TokenIntrospectionSuccessResponse response = Optional.of(token)
				.map(this::buildRequest)
				.map(this::makeRequest)
				.map(this::adaptToNimbusResponse)
				.map(this::parseNimbusResponse)
				.map(this::castToNimbusSuccess)
				// relying solely on the authorization server to validate this token (not checking 'exp', for example)
				.filter(TokenIntrospectionSuccessResponse::isActive)
				.orElseThrow(() -> new OAuth2IntrospectionException("Provided token [" + token + "] isn't active"));
		return convertClaimsSet(response);
	}
@Override
	public Map<String, Object> introspect(String token) {
		TokenIntrospectionSuccessResponse response = Optional.of(token)
				.map(this::buildRequest)
				.map(this::makeRequest)
				.map(this::adaptToNimbusResponse)
				.map(this::parseNimbusResponse)
				.map(this::castToNimbusSuccess)
				// relying solely on the authorization server to validate this token (not checking 'exp', for example)
				.filter(TokenIntrospectionSuccessResponse::isActive)
				.orElseThrow(() -> new OAuth2IntrospectionException("Provided token [" + token + "] isn't active"));
		return convertClaimsSet(response);
	}
{@inheritDoc}