Class OAuth2IdentityProvider

  • All Implemented Interfaces:
    Serializable

    public class OAuth2IdentityProvider
    extends Object
    implements Serializable
    Represents a configured identity provider to be shown as a model attribute in a Thymeleaf template.
    Author:
    Nathan Moore (nathandmoore)
    See Also:
    Serialized Form
    • Constructor Detail

      • OAuth2IdentityProvider

        public OAuth2IdentityProvider()
    • Method Detail

      • getId

        public String getId()
        The registration ID of the of the IDP.
        Returns:
        The ID of the IDP.
      • getName

        public String getName()
        The name of the IDP. This will be displayed to the user.
        Returns:
        The name of the IDP.
      • getUrl

        public String getUrl()
        The action URL to take the user to the authentication page for this IDP.
        Returns:
        The action URL to take the user to the authentication page for this IDP.
      • getIcon

        public String getIcon()
        The path to a static resource that represents an icon to display on the action component for this IDP.
        Returns:
        The path to a static resource that represents an icon to display on the action component for this IDP.
      • setId

        public void setId​(String id)
        The registration ID of the of the IDP.
        Parameters:
        name - The ID of the IDP.
      • setName

        public void setName​(String name)
        The name of the IDP. This will be displayed to the user.
        Parameters:
        name - The name of the IDP.
      • setUrl

        public void setUrl​(String url)
        The action URL to take the user to the authentication page for this IDP.
        Parameters:
        url - The action URL to take the user to the authentication page for this IDP.
      • setIcon

        public void setIcon​(String icon)
        The path to a static resource that represents an icon to display on the action component for this IDP.
        Parameters:
        icon - The path to a static resource that represents an icon to display on the action component for this IDP.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object