Record Class MiniStackAuthProxy.Config

java.lang.Object
java.lang.Record
com.cloudforgeci.ministack.MiniStackAuthProxy.Config
Enclosing class:
MiniStackAuthProxy

public static record MiniStackAuthProxy.Config(int listenPort, URI upstream, String authorizationEndpoint, URI tokenEndpoint, String clientId, String clientSecret, URI redirectUri) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Config(int listenPort, URI upstream, String authorizationEndpoint, URI tokenEndpoint, String clientId, String clientSecret, URI redirectUri)
    Creates an instance of a Config record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the authorizationEndpoint record component.
    Returns the value of the clientId record component.
    Returns the value of the clientSecret record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the listenPort record component.
    Returns the value of the redirectUri record component.
    Returns the value of the tokenEndpoint record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the upstream record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Config

      public Config(int listenPort, URI upstream, String authorizationEndpoint, URI tokenEndpoint, String clientId, String clientSecret, URI redirectUri)
      Creates an instance of a Config record class.
      Parameters:
      listenPort - the value for the listenPort record component
      upstream - the value for the upstream record component
      authorizationEndpoint - the value for the authorizationEndpoint record component
      tokenEndpoint - the value for the tokenEndpoint record component
      clientId - the value for the clientId record component
      clientSecret - the value for the clientSecret record component
      redirectUri - the value for the redirectUri 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • listenPort

      public int listenPort()
      Returns the value of the listenPort record component.
      Returns:
      the value of the listenPort record component
    • upstream

      public URI upstream()
      Returns the value of the upstream record component.
      Returns:
      the value of the upstream record component
    • authorizationEndpoint

      public String authorizationEndpoint()
      Returns the value of the authorizationEndpoint record component.
      Returns:
      the value of the authorizationEndpoint record component
    • tokenEndpoint

      public URI tokenEndpoint()
      Returns the value of the tokenEndpoint record component.
      Returns:
      the value of the tokenEndpoint 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
    • redirectUri

      public URI redirectUri()
      Returns the value of the redirectUri record component.
      Returns:
      the value of the redirectUri record component