Whatever message this page gives is out now! Go check it out!
CreateSignedJWT(payload, signOptions, config)| Parameters | Description | Required |
| payload | If the payload is a string, the method accepts it as it is. If not, the following fields can be passed as a struct:
| Yes |
| signOptions | Create the signature using the struct below:
| Yes |
| config | A struct with the following values:
| Yes |
<cfset text = {
"iss" = "a",
"sub" = "b",
"abcd" = "efgh",
"aud" = "adobe",
"exp" = "#DateAdd("n", 30, now())#",
"id"="cc",
"iat"="#DateAdd("n", -30, now())#"
}>
<cfset k=getKeyPairfromkeystore({
"keystore" : "test_jws1.keystore",
"keystorePassword": "****",
"keypairPassword": "****",
"keystoreAlias": "contentKey"
}) >
<cfset c = {
"algorithm" = "RS256",
"generateIssuedAt"= true,
"generateJti"=true
}>
<cfset createjws = CreateSignedJWT(text,k.getPrivate(),c)>
<cfdump var = "#createjws#">