Class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder

    • Constructor Summary

      Constructors 
      Constructor Description
      OAuth2AuthorizedClientHolder​(java.lang.String clientRegistrationId, java.lang.String principalName, org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, org.springframework.security.oauth2.core.OAuth2RefreshToken refreshToken)
      Constructs an OAuth2AuthorizedClientHolder using the provided parameters.
      OAuth2AuthorizedClientHolder​(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal)
      Constructs an OAuth2AuthorizedClientHolder using the provided parameters.
    • Constructor Detail

      • OAuth2AuthorizedClientHolder

        public OAuth2AuthorizedClientHolder​(OAuth2AuthorizedClient authorizedClient,
                                            org.springframework.security.core.Authentication principal)
        Constructs an OAuth2AuthorizedClientHolder using the provided parameters.
        Parameters:
        authorizedClient - the authorized client
        principal - the End-User Authentication (Resource Owner)
      • OAuth2AuthorizedClientHolder

        public OAuth2AuthorizedClientHolder​(java.lang.String clientRegistrationId,
                                            java.lang.String principalName,
                                            org.springframework.security.oauth2.core.OAuth2AccessToken accessToken,
                                            org.springframework.security.oauth2.core.OAuth2RefreshToken refreshToken)
        Constructs an OAuth2AuthorizedClientHolder using the provided parameters.
        Parameters:
        clientRegistrationId - the client registration id
        principalName - the principal name of the End-User (Resource Owner)
        accessToken - the access token
        refreshToken - the refresh token
    • Method Detail

      • getClientRegistrationId

        public java.lang.String getClientRegistrationId()
      • getPrincipalName

        public java.lang.String getPrincipalName()
      • getAccessToken

        public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken()
      • getRefreshToken

        public org.springframework.security.oauth2.core.OAuth2RefreshToken getRefreshToken()