Class GenericOAuth20Client

  • All Implemented Interfaces:
    Client<OAuth20Credentials>

    public class GenericOAuth20Client
    extends OAuth20Client

    This class is a generic OAuth2 client to authenticate users in a standard OAuth2 server.

    All configuration parameters can be specified setting the corresponding attribute.

    It returns a OAuth20Profile.

    Author:
    Julio Arrebola
    • Constructor Detail

      • GenericOAuth20Client

        public GenericOAuth20Client()
    • Method Detail

      • setAuthUrl

        public void setAuthUrl​(String authUrl)
      • setTokenUrl

        public void setTokenUrl​(String tokenUrl)
      • setProfileUrl

        public void setProfileUrl​(String profileUrl)
      • setProfileNodePath

        public void setProfileNodePath​(String profilePath)
      • setProfileVerb

        public void setProfileVerb​(com.github.scribejava.core.model.Verb profileVerb)
      • setProfileAttrs

        public void setProfileAttrs​(Map<String,​String> profileAttrsMap)
      • setCustomParams

        public void setCustomParams​(Map<String,​String> customParamsMap)
      • setProfileId

        public void setProfileId​(String profileId)
      • getScope

        public String getScope()
      • setScope

        public void setScope​(String scope)
      • isWithState

        public boolean isWithState()
      • setWithState

        public void setWithState​(boolean withState)
      • getClientAuthenticationMethod

        public String getClientAuthenticationMethod()
      • setClientAuthenticationMethod

        public void setClientAuthenticationMethod​(String clientAuthenticationMethod)