class JWTCredential : Credential, JWTPayloadHolder
Represents a JWT credential consist of the specified payload
See Also
JWTCredential(payload: Payload)
Represents a JWT credential consist of the specified payload |
val audience: List<String>
Get the value of the "aud" claim, or an empty list if it's not available. |
|
val expiresAt: Date?
Get the value of the "exp" claim, or null if it's not available. |
|
val issuedAt: Date?
Get the value of the "iat" claim, or null if it's not available. |
|
val issuer: String?
Get the value of the "iss" claim, or null if it's not available. |
|
val jwtId: String?
Get the value of the "jti" claim, or null if it's not available. |
|
val notBefore: Date?
Get the value of the "nbf" claim, or null if it's not available. |
|
val payload: Payload
The JWT payload |
|
val subject: String?
Get the value of the "sub" claim, or null if it's not available. |
operator fun get(name: String): String?
Retrieve a non-RFC JWT string Claim by its name |
|
fun <T : Any> getClaim(name: String, clazz: KClass<T>): T?
Retrieve a non-RFC JWT Claim by its name and attempt to decode as the supplied type |
|
fun <T : Any> getListClaim(name: String, clazz: KClass<T>): List<T>
Retrieve a non-RFC JWT Claim by its name and attempt to decode as a list of the supplied type |