Class DefaultOAuthProvider

  • All Implemented Interfaces:
    OAuthProvider

    public final class DefaultOAuthProvider
    extends java.lang.Object
    implements OAuthProvider
    A representation of an OAuth provider which is one of the default providers provided for end-users. This list of currently supplied providers currently includes those supplied with the OLTU library.
    Author:
    Alex Kalderimis
    • Constructor Detail

      • DefaultOAuthProvider

        public DefaultOAuthProvider​(java.util.Properties properties,
                                    org.apache.oltu.oauth2.common.OAuthProviderType provider)
        Construct a new provider.
        Parameters:
        properties - The properties where the client-id and client-secret can be looked up.
        provider - The OLTU provider configuration.
    • Method Detail

      • getTokenUrl

        public java.lang.String getTokenUrl()
        Specified by:
        getTokenUrl in interface OAuthProvider
        Returns:
        the URL for the token endpoint
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface OAuthProvider
        Returns:
        the name of the provider
      • getClientId

        public java.lang.String getClientId()
        Specified by:
        getClientId in interface OAuthProvider
        Returns:
        the configured client id for this provider
      • getClientSecret

        public java.lang.String getClientSecret()
        Specified by:
        getClientSecret in interface OAuthProvider
        Returns:
        the configured client secret for this provider