public class STSTokenGenerator extends Object
| Constructor and Description |
|---|
STSTokenGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateToken(String audience,
String issuer,
String destination)
Generates a JWT token.
|
static String |
generateToken(String incomingJWT,
String audience,
String issuer,
String destination)
Generates a JWT token.
|
static com.nimbusds.jwt.JWTClaimsSet |
getJWTClaims(String jwt)
Retrieve CalimSet of the parsed JWT.
|
public static String generateToken(String incomingJWT, String audience, String issuer, String destination) throws CelleryCellSTSException
incomingJWT - Incoming JWT.audience - Audience which needs to be added to JWT.issuer - Issuer of the JWT.CelleryCellSTSExceptionpublic static String generateToken(String audience, String issuer, String destination) throws CelleryCellSTSException
audience - Audience of the JWT to be issued.issuer - Issuer of the JWT to be issued.CelleryCellSTSExceptionpublic static com.nimbusds.jwt.JWTClaimsSet getJWTClaims(String jwt) throws CelleryCellSTSException
jwt - JWT token.CelleryCellSTSExceptionCopyright © 2019 WSO2. All rights reserved.