Package com.sap.cloud.security.xsuaa.jwt
Interface DecodedJwt
- All Superinterfaces:
Serializable
A Jwt token consists of three parts, separated by ".":
header.payload.signature
Use Base64JwtDecoder.getInstance().decode(token) to get a
DecodedJwt instance.
-
Method Summary
Modifier and TypeMethodDescriptionGet the original encoded access token.Get the base64 decoded header of the jwt as UTF-8 String.Get the base64 decoded payload of the jwt as UTF-8 String.Get the encoded signature of the jwt.
-
Method Details
-
getHeader
String getHeader()Get the base64 decoded header of the jwt as UTF-8 String.- Returns:
- the decoded header.
-
getPayload
String getPayload()Get the base64 decoded payload of the jwt as UTF-8 String.- Returns:
- the decoded payload.
-
getSignature
String getSignature()Get the encoded signature of the jwt.- Returns:
- the decoded signature.
-
getEncodedToken
String getEncodedToken()Get the original encoded access token.Never expose this token via log or via HTTP.
- Returns:
- jwt token
-