Class MQConfigurationPropertiesTokenServer

java.lang.Object
com.ibm.mq.spring.boot.MQConfigurationPropertiesTokenServer

public class MQConfigurationPropertiesTokenServer extends Object
This Properties class provides an option to connect to MQ using JWT authentication with JWKS. When used, it is mandatory to populate all the properties, else it may fail or fallback to default connection
  • Constructor Details

    • MQConfigurationPropertiesTokenServer

      public MQConfigurationPropertiesTokenServer()
  • Method Details

    • getEndpoint

      public String getEndpoint()
      Returns the JWT authentication server token URL.
      Returns:
      URL endpoint of the token provider
    • setEndpoint

      public void setEndpoint(String endpoint)
      Set the JWT authentication server token URL.
      Parameters:
      endpoint - - URL endpoint of the token provider
    • getClientId

      public String getClientId()
      Returns the JWT authentication server client ID.
      Returns:
      Identity of the client requesting the token.
    • setClientId

      public void setClientId(String clientId)
      Set the JWT authentication server client ID.
      Parameters:
      clientId - - Identity of the client requesting the token
    • getClientSecret

      public String getClientSecret()
      Returns the JWT Auth Server Client Secret.
      Returns:
      Client secret that authenticates with the token provider
    • setClientSecret

      public void setClientSecret(String clientSecret)
      Set the JWT Auth Server Client Secret.
      Parameters:
      clientSecret - - Client secret for authenticating with the token provider
    • traceProperties

      public void traceProperties(org.slf4j.Logger parentLogger)
      Traces the configuration attributes of the current object. Use the parent logger so it appears neater in the output.