public class TestJWTGenerator extends AbstractMGWJWTGenerator
| Constructor and Description |
|---|
TestJWTGenerator(String dialectURI,
String signatureAlgorithm,
String keyStorePath,
String keyStorePassword,
String certificateAlias,
String privateKeyAlias,
int jwtExpiryTime,
String[] restrictedClaims,
boolean cacheEnabled,
int cacheExpiry,
String tokenIssuer,
String[] tokenAudience) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
populateCustomClaims(Map<String,Object> jwtInfo,
ArrayList<String> restrictedClaims)
Method to populate custom claims apart from the standard claims
|
Map<String,Object> |
populateStandardClaims(Map<String,Object> jwtInfo)
Method to populate standard claims and APIM related claims
|
addCertToHeader, arrayToJSONArray, buildBody, buildHeader, encode, generateToken, getApiDetails, getCacheExpiry, getCertificateAlias, getDefaultRestrictedClaims, getDialectURI, getJwtExpiryTime, getKeyStorePassword, getKeyStorePath, getPrivateKeyAlias, getRestrictedClaims, getSignatureAlgorithm, getTokenAudience, getTokenIssuer, getTTL, hexify, isCacheEnabled, setApiDetails, setCacheEnabled, setCacheExpiry, setCertificateAlias, setDefaultRestrictedClaims, setDialectURI, setJwtExpiryTime, setKeyStorePassword, setKeyStorePath, setPrivateKeyAlias, setRestrictedClaims, setSignatureAlgorithm, setTokenAudience, setTokenIssuer, signJWTpublic TestJWTGenerator(String dialectURI, String signatureAlgorithm, String keyStorePath, String keyStorePassword, String certificateAlias, String privateKeyAlias, int jwtExpiryTime, String[] restrictedClaims, boolean cacheEnabled, int cacheExpiry, String tokenIssuer, String[] tokenAudience)
public Map<String,Object> populateStandardClaims(Map<String,Object> jwtInfo)
populateStandardClaims in class AbstractMGWJWTGeneratorjwtInfo - - JWT payloadpublic Map<String,Object> populateCustomClaims(Map<String,Object> jwtInfo, ArrayList<String> restrictedClaims)
populateCustomClaims in class AbstractMGWJWTGeneratorjwtInfo - - JWT payloadrestrictedClaims - - restricted claims that should not be included in the generated token payloadCopyright © 2021 WSO2. All rights reserved.