Package com.ibm.mq.spring.boot
Class MQConfigurationPropertiesTokenServer
java.lang.Object
com.ibm.mq.spring.boot.MQConfigurationPropertiesTokenServer
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the JWT authentication server client ID.Returns the JWT Auth Server Client Secret.Returns the JWT authentication server token URL.voidsetClientId(String clientId) Set the JWT authentication server client ID.voidsetClientSecret(String clientSecret) Set the JWT Auth Server Client Secret.voidsetEndpoint(String endpoint) Set the JWT authentication server token URL.voidtraceProperties(org.slf4j.Logger parentLogger) Traces the configuration attributes of the current object.
-
Constructor Details
-
MQConfigurationPropertiesTokenServer
public MQConfigurationPropertiesTokenServer()
-
-
Method Details
-
getEndpoint
Returns the JWT authentication server token URL.- Returns:
- URL endpoint of the token provider
-
setEndpoint
Set the JWT authentication server token URL.- Parameters:
endpoint- - URL endpoint of the token provider
-
getClientId
Returns the JWT authentication server client ID.- Returns:
- Identity of the client requesting the token.
-
setClientId
Set the JWT authentication server client ID.- Parameters:
clientId- - Identity of the client requesting the token
-
getClientSecret
Returns the JWT Auth Server Client Secret.- Returns:
- Client secret that authenticates with the token provider
-
setClientSecret
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.
-