congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
OAuth2AuthorizedClientArgumentResolver.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.security.oauth2.client.web.method.annotation.OAuth2AuthorizedClientArgumentResolver
constructor

Best Java code snippets using org.springframework.security.oauth2.client.web.method.annotation.OAuth2AuthorizedClientArgumentResolver.<init> (Showing top 6 results out of 315)

origin: spring-projects/spring-security

@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
  if (this.clientRegistrationRepository != null && this.authorizedClientRepository != null) {
    OAuth2AuthorizedClientArgumentResolver authorizedClientArgumentResolver =
        new OAuth2AuthorizedClientArgumentResolver(
            this.clientRegistrationRepository, this.authorizedClientRepository);
    argumentResolvers.add(authorizedClientArgumentResolver);
  }
}
origin: spring-projects/spring-security

@Test
public void constructorWhenOAuth2AuthorizedClientRepositoryIsNullThenThrowIllegalArgumentException() {
  assertThatThrownBy(() -> new OAuth2AuthorizedClientArgumentResolver(this.clientRegistrationRepository, null))
      .isInstanceOf(IllegalArgumentException.class);
}
origin: spring-projects/spring-security

@Test
public void constructorWhenClientRegistrationRepositoryIsNullThenThrowIllegalArgumentException() {
  assertThatThrownBy(() -> new OAuth2AuthorizedClientArgumentResolver(null, this.authorizedClientRepository))
      .isInstanceOf(IllegalArgumentException.class);
}
origin: org.springframework.security/spring-security-config

@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
  if (this.clientRegistrationRepository != null && this.authorizedClientRepository != null) {
    OAuth2AuthorizedClientArgumentResolver authorizedClientArgumentResolver =
        new OAuth2AuthorizedClientArgumentResolver(
            this.clientRegistrationRepository, this.authorizedClientRepository);
    argumentResolvers.add(authorizedClientArgumentResolver);
  }
}
origin: spring-projects/spring-security

this.clientRegistrationRepository = new InMemoryClientRegistrationRepository(this.registration1, this.registration2);
this.authorizedClientRepository = mock(OAuth2AuthorizedClientRepository.class);
this.argumentResolver = new OAuth2AuthorizedClientArgumentResolver(
    this.clientRegistrationRepository, this.authorizedClientRepository);
this.authorizedClient1 = new OAuth2AuthorizedClient(this.registration1, this.principalName, mock(OAuth2AccessToken.class));
origin: apache/servicemix-bundles

@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
  if (this.clientRegistrationRepository != null && this.authorizedClientRepository != null) {
    OAuth2AuthorizedClientArgumentResolver authorizedClientArgumentResolver =
        new OAuth2AuthorizedClientArgumentResolver(
            this.clientRegistrationRepository, this.authorizedClientRepository);
    argumentResolvers.add(authorizedClientArgumentResolver);
  }
}
org.springframework.security.oauth2.client.web.method.annotationOAuth2AuthorizedClientArgumentResolver<init>

Javadoc

Constructs an OAuth2AuthorizedClientArgumentResolver using the provided parameters.

Popular methods of OAuth2AuthorizedClientArgumentResolver

  • authorizeClientCredentialsClient
  • resolveClientRegistrationId
  • resolveArgument
  • setClientCredentialsTokenResponseClient
    Sets the client used when requesting an access token credential at the Token Endpoint for the client
  • supportsParameter

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now