Package com.oracle.bmc.auth.internal
Class JwtClaimsSet
- java.lang.Object
-
- com.oracle.bmc.auth.internal.JwtClaimsSet
-
public class JwtClaimsSet extends Object
JSON Web Token Claim Set.
-
-
Constructor Summary
Constructors Constructor Description JwtClaimsSet(String token)
Create a JWT claim set from a token string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getClaim(String name)
Return the claim for the key.Date
getExpirationTime()
Return the JWT expiration timeMap<String,Object>
getHeader()
Date
getIssueTime()
Return the JWT issued timeMap<String,Object>
getPayload()
String
getSignature()
String
getStringClaim(String name)
Return the string claim for the key.
-
-
-
Constructor Detail
-
JwtClaimsSet
public JwtClaimsSet(String token)
Create a JWT claim set from a token string.- Parameters:
token
- token string (must be non-null and not empty)
-
-
Method Detail
-
getSignature
public String getSignature()
-
getExpirationTime
public Date getExpirationTime()
Return the JWT expiration time- Returns:
- expiration time
-
getIssueTime
public Date getIssueTime()
Return the JWT issued time- Returns:
- issued time
-
getStringClaim
public String getStringClaim(String name) throws ParseException
Return the string claim for the key.- Parameters:
name
- key for the claim- Returns:
- string claim
- Throws:
ParseException
- if not a string
-
-