Class CustomOAuthProvider

  • All Implemented Interfaces:
    OAuthProvider

    public final class CustomOAuthProvider
    extends java.lang.Object
    implements OAuthProvider
    A representation of an OAuth provider which has been configured entirely in web-properties.
    Author:
    Alex Kalderimis
    • Constructor Detail

      • CustomOAuthProvider

        public CustomOAuthProvider​(java.util.Properties properties,
                                   java.lang.String providerName)
        Construct a new provider.
        Parameters:
        properties - The properties which define the provider.
        providerName - The name of the provider to look up the configured values.
    • Method Detail

      • 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
      • getTokenUrl

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