Package io.antmedia.datastore.db.types
Class Token
java.lang.Object
io.antmedia.datastore.db.types.Token
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.bson.types.ObjectIdThe db id of the token.private longThe expiration date of the token.static final Stringstatic final Stringprivate StringThe id of the conference room which requested streams belong to.private StringThe stream id associated with the token.private StringThe token id.private StringThe type of the token, such as publish, play, etc. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetType()voidsetExpireDate(long expireDate) voidvoidsetStreamId(String streamId) voidsetTokenId(String tokenId) void
-
Field Details
-
PUBLISH_TOKEN
- See Also:
-
PLAY_TOKEN
- See Also:
-
dbId
@Id private org.bson.types.ObjectId dbIdThe db id of the token. -
tokenId
The token id. -
streamId
The stream id associated with the token. -
expireDate
private long expireDateThe expiration date of the token. -
type
The type of the token, such as publish, play, etc. -
roomId
The id of the conference room which requested streams belong to.
-
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
getRoomId
-
setRoomId
-
getType
-
setType
-
getTokenId
-
setTokenId
-
getStreamId
-
setStreamId
-
getExpireDate
public long getExpireDate() -
setExpireDate
public void setExpireDate(long expireDate)
-