public interface JWTUtils
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateJSONWebKeySet(java.lang.String tokenInstanceName)
API to generate JSON web key set as a json string
|
ClipboardPage |
generateJSONWebToken(ClipboardPage aTokenProfilePage,
ClipboardPage aContextPage,
java.util.Map<java.lang.String,java.lang.String> options)
Generates JSON web token instance from the given Clipboard Page of
"Data-Admin-Security-Token"
|
ClipboardPage |
generateJSONWebToken(java.lang.String aTokenInstanceName,
ClipboardPage aContextPage,
java.util.Map<java.lang.String,java.lang.String> options)
Generates JSON web token instance from the given Clipboard Page of
"Data-Admin-Security-Token"
|
void |
processJSONWebToken(java.lang.String compactJWTString,
ClipboardPage aTokenProfilePage)
API for processing JSON web token in compact form X.Y.Z
|
void |
processJSONWebToken(java.lang.String generatedJWT,
java.lang.String processingTokenProfileName)
API for processing generated json web token
|
ClipboardPage generateJSONWebToken(ClipboardPage aTokenProfilePage, ClipboardPage aContextPage, java.util.Map<java.lang.String,java.lang.String> options)
aTokenProfilePage
- : a ClipboardPage of "Data-Admin-Security-Token"aContextPage
- : Based on options parameter, context page properties are
included in JWT as a payload.options
- : options can be configured with following the keys 1)
"honourCustomClaims", if true, context page is included in JWT
as a payload 2) "propertiesToExclude" is a string of comma
separated properties which are excluded from context page
ex:"pzInzKey,pxObjClass" 3) "customClaimName" if specified,
will be the JSON key for payload page properties, else will
have default value "pyData"ClipboardPage generateJSONWebToken(java.lang.String aTokenInstanceName, ClipboardPage aContextPage, java.util.Map<java.lang.String,java.lang.String> options)
aTokenInstanceName
- : Name of Token Profile instanceaContextPage
- : Based on options parameter, context page properties are
included in JWT as a payload.options
- : options can be configured with following keys 1)
"honourCustomClaims", if true, context page is included in JWT
as a payload 2) "propertiesToExclude" is a string of comma
separated properties which are excluded from context page
ex:"pzInzKey,pxObjClass" 3) "customClaimName" if specified,
will be the JSON key for payload page properties, else will
have default value "pyData"java.lang.String generateJSONWebKeySet(java.lang.String tokenInstanceName)
tokenInstanceName
- Token instance namevoid processJSONWebToken(java.lang.String generatedJWT, java.lang.String processingTokenProfileName)
generatedJWT
- Generated JWT stringprocessingTokenProfileName
- JWT profile instance namevoid processJSONWebToken(java.lang.String compactJWTString, ClipboardPage aTokenProfilePage)
compactJWTString
- JWT stringaTokenProfilePage
- JWT profile instance page * *Copyright © 2018 Pegasystems Inc. All Rights Reserved.