-
public final class TokenPayloadDecodes a LiveKit connection token and grabs relevant information from it.
https://docs.livekit.io/home/get-started/authentication/
-
-
Field Summary
Fields Modifier and Type Field Description private final JWTjwtprivate final Stringissuerprivate final Stringsubjectprivate final DateexpiresAtprivate final DatenotBeforeprivate final DateissuedAtprivate final Stringnameprivate final Stringidentityprivate final Stringmetadataprivate final Map<String, String>attributesprivate final VideoGrantsvideoprivate final Stringtoken
-
Constructor Summary
Constructors Constructor Description TokenPayload(String token)
-
Method Summary
Modifier and Type Method Description final JWTgetJwt()final StringgetIssuer()final StringgetSubject()final DategetExpiresAt()final DategetNotBefore()final DategetIssuedAt()final StringgetName()Display name for the participant, equivalent to io.livekit.android.room.participant.Participant.name final StringgetIdentity()Unique identity of the user, equivalent to io.livekit.android.room.participant.Participant.identity final StringgetMetadata()The metadata of the participant final Map<String, String>getAttributes()Key/value attributes attached to the participant final VideoGrantsgetVideo()Room related permissions. final StringgetToken()-
-
Constructor Detail
-
TokenPayload
TokenPayload(String token)
-
-
Method Detail
-
getJwt
final JWT getJwt()
-
getSubject
final String getSubject()
-
getExpiresAt
final Date getExpiresAt()
-
getNotBefore
final Date getNotBefore()
-
getIssuedAt
final Date getIssuedAt()
-
getName
final String getName()
Display name for the participant, equivalent to io.livekit.android.room.participant.Participant.name
-
getIdentity
final String getIdentity()
Unique identity of the user, equivalent to io.livekit.android.room.participant.Participant.identity
-
getMetadata
final String getMetadata()
The metadata of the participant
-
getAttributes
final Map<String, String> getAttributes()
Key/value attributes attached to the participant
-
getVideo
final VideoGrants getVideo()
Room related permissions.
-
-
-
-