Record Class ExternalProviderService.ProviderConfigDefinition

java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.ExternalProviderService.ProviderConfigDefinition
Enclosing interface:
ExternalProviderService

public static record ExternalProviderService.ProviderConfigDefinition(String realm, String providerKey, AuthProviderType providerType, String clientId, String clientSecret, String authorizationUri, String tokenUri, String userInfoUri, List<String> scopes) extends Record
  • Field Details

    • realm

      private final String realm
      The field for the realm record component.
    • providerKey

      private final String providerKey
      The field for the providerKey record component.
    • providerType

      private final AuthProviderType providerType
      The field for the providerType record component.
    • clientId

      private final String clientId
      The field for the clientId record component.
    • clientSecret

      private final String clientSecret
      The field for the clientSecret record component.
    • authorizationUri

      private final String authorizationUri
      The field for the authorizationUri record component.
    • tokenUri

      private final String tokenUri
      The field for the tokenUri record component.
    • userInfoUri

      private final String userInfoUri
      The field for the userInfoUri record component.
    • scopes

      private final List<String> scopes
      The field for the scopes record component.
  • Constructor Details

    • ProviderConfigDefinition

      public ProviderConfigDefinition(String realm, String providerKey, AuthProviderType providerType, String clientId, String clientSecret, String authorizationUri, String tokenUri, String userInfoUri, List<String> scopes)
      Creates an instance of a ProviderConfigDefinition record class.
      Parameters:
      realm - the value for the realm record component
      providerKey - the value for the providerKey record component
      providerType - the value for the providerType record component
      clientId - the value for the clientId record component
      clientSecret - the value for the clientSecret record component
      authorizationUri - the value for the authorizationUri record component
      tokenUri - the value for the tokenUri record component
      userInfoUri - the value for the userInfoUri record component
      scopes - the value for the scopes record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • realm

      public String realm()
      Returns the value of the realm record component.
      Returns:
      the value of the realm record component
    • providerKey

      public String providerKey()
      Returns the value of the providerKey record component.
      Returns:
      the value of the providerKey record component
    • providerType

      public AuthProviderType providerType()
      Returns the value of the providerType record component.
      Returns:
      the value of the providerType record component
    • clientId

      public String clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • clientSecret

      public String clientSecret()
      Returns the value of the clientSecret record component.
      Returns:
      the value of the clientSecret record component
    • authorizationUri

      public String authorizationUri()
      Returns the value of the authorizationUri record component.
      Returns:
      the value of the authorizationUri record component
    • tokenUri

      public String tokenUri()
      Returns the value of the tokenUri record component.
      Returns:
      the value of the tokenUri record component
    • userInfoUri

      public String userInfoUri()
      Returns the value of the userInfoUri record component.
      Returns:
      the value of the userInfoUri record component
    • scopes

      public List<String> scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component