Class OAuthClient

  • Direct Known Subclasses:
    OAuthClientWithLoginHint

    public class OAuthClient
    extends Object
    Client that can handle authentication against a UAA instance
    • Field Detail

      • token

        protected org.springframework.security.oauth2.common.OAuth2AccessToken token
    • Constructor Detail

      • OAuthClient

        public OAuthClient​(URL authorizationUrl,
                           org.springframework.web.reactive.function.client.WebClient webClient)
    • Method Detail

      • clear

        public void clear()
      • getToken

        public org.springframework.security.oauth2.common.OAuth2AccessToken getToken()
      • getAuthorizationHeader

        public String getAuthorizationHeader()
      • createToken

        protected org.springframework.security.oauth2.common.OAuth2AccessToken createToken()
      • refreshToken

        protected org.springframework.security.oauth2.common.OAuth2AccessToken refreshToken()
      • getTokenProvider

        public org.cloudfoundry.reactor.TokenProvider getTokenProvider()