Package com.ibm.websphere.security.jwt
Interface JwtToken
-
public interface JwtToken
TheJwtToken
represents JSON Web Token (JWT) and consists of a payload which is represented byClaims
and header and signature. This interface has three methods to return these.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
compact()
Claims
getClaims()
java.lang.String
getHeader(java.lang.String name)
-
-
-
Method Detail
-
getClaims
Claims getClaims()
- Returns:
- The
JwtToken
claims or payload
-
getHeader
java.lang.String getHeader(java.lang.String name)
- Parameters:
name
- This is the header name- Returns:
- The
JwtToken
header value corresponding to the given header name
-
compact
java.lang.String compact()
- Returns:
- The
JwtToken
as a string consisting of base64 encoded header, payload, signature separated by period ('.') characters.
-
-