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

  • Making http requests using okhttp
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Collectors (java.util.stream)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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