code: public ResourceServerSecurityConfigurer authenticationDetailsSource(
  			AuthenticationDetailsSource<HttpServletRequest, ?> authenticationDetailsSource) {
  		Assert.state(authenticationDetailsSource != null, "AuthenticationDetailsSource cannot be null");
  		this.authenticationDetailsSource = authenticationDetailsSource;
  		return this;
  	}
docs: Sets a custom {@link AuthenticationDetailsSource} to use as a source
  of authentication details. The default is {@link OAuth2AuthenticationDetailsSource}.
  
  @param authenticationDetailsSource the custom {@link AuthenticationDetailsSource} to use
  @return {@link ResourceServerSecurityConfigurer} for additional customization