Package ca.cdr.api.security
Class ClientAuthParams
java.lang.Object
ca.cdr.api.security.ClientAuthParams
Keeps user-defined parameters used for SMART client authentication.
Before object is used to build
ClientAuthInterceptor
, one of myJwt or mySecret properties
must be valid depending on the intended authorization flow:
- myJwt: for private_key_jwt workflow
- mySecret: for client_secret workflow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.apache.http.message.BasicNameValuePair>
Used in jwt and client credentials flows List of pairs name-value which will be added to access token request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.http.message.BasicNameValuePair>
getScope()
boolean
withAdditionalParameters
(List<org.apache.http.message.BasicNameValuePair> theAdditionalParameters) withClientSecret
(String theClientSecret) withForceHttpInTokenRequestAudience
(boolean theForceHttp) withKeystore
(String theKeystoreName) void
withTlsConfig
(Object theClientTlsConfig)
-
Field Details
-
myCustomTokenRequestParams
Used in jwt and client credentials flows List of pairs name-value which will be added to access token request
-
-
Constructor Details
-
ClientAuthParams
-
-
Method Details
-
withKeystore
-
withClientSecret
-
withScope
-
withAdditionalParameters
public ClientAuthParams withAdditionalParameters(List<org.apache.http.message.BasicNameValuePair> theAdditionalParameters) -
withForceHttpInTokenRequestAudience
-
withTlsConfig
-
isForceHttpInTokenRequestAudience
-
getKeystoreName
-
getClientId
-
getCustomTokenRequestParams
-
getScope
-
getClientSecret
-
getClientTlsConfig
-