Package com.sap.cloud.security.xsuaa.jwt
Interface DecodedJwt
-
public interface DecodedJwtA Jwt token consists of three parts, separated by ".": header.payload.signature UseBase64JwtDecoder.getInstance().decode(token)to get aDecodedJwtinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetEncodedToken()Get the original encoded access token.StringgetHeader()Get the base64 decoded header of the jwt as UTF-8 String.StringgetPayload()Get the base64 decoded payload of the jwt as UTF-8 String.StringgetSignature()Get the encoded signature of the jwt.
-
-
-
Method Detail
-
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
-
-