-
- All Implemented Interfaces:
public final class Streem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreem.Companion
-
Method Summary
Modifier and Type Method Description final TokenBuilderbuildToken(String userId)Returns a TokenBuilder that can be used to create a Streem Token. final StringbuildToken(String userId, Function1<StreemToken, Unit> builder)Returns a string representation of a Streem Token configured with builder. -
-
Method Detail
-
buildToken
final TokenBuilder buildToken(String userId)
Returns a TokenBuilder that can be used to create a Streem Token.
This method is optimized for use from Java code. For Kotlin code, prefer the buildToken method that takes a builder lambda.
- Parameters:
userId- The user ID of the user to authenticate with this token.
-
buildToken
final String buildToken(String userId, Function1<StreemToken, Unit> builder)
Returns a string representation of a Streem Token configured with builder.
This method is optimized for use from Kotlin code. For Java code, prefer the buildToken method that returns a TokenBuilder.
- Parameters:
userId- The user ID of the user to authenticate with this token.
-
-
-
-