A token. More...
Public Member Functions | |
String | getAlgorithm () |
Gets the algorithm. More... | |
String | getApiServiceId () |
Gets the API Service identifier. More... | |
String | getApplicationId () |
Gets the application identifier. More... | |
fm.liveswitch.ChannelClaim | getChannelClaim () |
Gets the first channel claim. More... | |
fm.liveswitch.ChannelClaim[] | getChannelClaims () |
Gets an array of channel claims. More... | |
String | getClientId () |
Gets the client identifier. More... | |
String[] | getClientRoles () |
Gets the client roles. More... | |
String | getConnectorId () |
Gets the Connector identifier. More... | |
String | getDeviceId () |
Gets the device identifier. More... | |
fm.liveswitch.NullableDate | getExpirationTime () |
Gets the "expires at" date/time. More... | |
java.util.Date | getIssuedAt () |
Gets the "issued at" date/time. More... | |
String | getMediaServerId () |
Gets the Media Server identifier. More... | |
String | getRecordingMonitorId () |
Gets the Recording Monitor identifier. More... | |
String | getRecordingMoverId () |
Gets the Recording Mover identifier. More... | |
String | getRecordingMuxerId () |
Gets the Recording Muxer identifier. More... | |
String | getRegion () |
Gets the region. More... | |
String | getType () |
Gets the type. More... | |
String | getUserId () |
Gets the user identifier. More... | |
String | getWebSocketMediaServerId () |
Gets the Web Socket Media Server identifier. More... | |
boolean | verify (String sharedSecret) |
Verifies the token signature. More... | |
Static Public Member Functions | |
static String | generateClientJoinToken (String applicationId, String userId, String deviceId, String clientId, fm.liveswitch.ChannelClaim channelClaim, String sharedSecret) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (String applicationId, String userId, String deviceId, String clientId, fm.liveswitch.ChannelClaim channelClaim, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (String applicationId, String userId, String deviceId, String clientId, String channelId, String sharedSecret) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (String applicationId, String userId, String deviceId, String clientId, String channelId, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (fm.liveswitch.Client client, fm.liveswitch.ChannelClaim channelClaim, String sharedSecret) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (fm.liveswitch.Client client, fm.liveswitch.ChannelClaim channelClaim, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (fm.liveswitch.Client client, String channelId, String sharedSecret) |
Generates a signed client join token. More... | |
static String | generateClientJoinToken (fm.liveswitch.Client client, String channelId, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client join token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret, java.util.Date expirationTime, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String channelId, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String channelId, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String channelId, String sharedSecret, java.util.Date expirationTime, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String channelId, String sharedSecret, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String[] channelIds, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String[] channelIds, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String[] channelIds, String sharedSecret, java.util.Date expirationTime, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (String applicationId, String userId, String deviceId, String clientId, String[] clientRoles, String[] channelIds, String sharedSecret, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret, java.util.Date expirationTime, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, fm.liveswitch.ChannelClaim[] channelClaims, String sharedSecret, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String channelId, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String channelId, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String channelId, String sharedSecret, java.util.Date expirationTime, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String channelId, String sharedSecret, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String[] channelIds, String sharedSecret) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String[] channelIds, String sharedSecret, java.util.Date expirationTime) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String[] channelIds, String sharedSecret, java.util.Date expirationTime, String region) |
Generates a signed client register token. More... | |
static String | generateClientRegisterToken (fm.liveswitch.Client client, String[] channelIds, String sharedSecret, String region) |
Generates a signed client register token. More... | |
static String | generateClientWebSocketAccessToken (String applicationId, String userId, String deviceId, String clientId, String sharedSecret) |
Generates a signed client WebSocket access token. More... | |
static String | generateEventToken (String applicationId, String sharedSecret) |
Generates a signed event token. More... | |
static String | generateEventToken (String applicationId, String sharedSecret, java.util.Date expirationTime) |
Generates a signed event token. More... | |
static int | getDefaultExpiry () |
Gets the default token expiry (120 seconds). More... | |
static String | getHmacSha256Algorithm () |
Gets the HMAC SHA-256 algorithm string. More... | |
static String | getRsaSha256Algorithm () |
Gets the RSA SHA-256 algorithm string. More... | |
static fm.liveswitch.Token | parse (String tokenString) |
Parses a token string. More... | |
static boolean | verify (String tokenString, String sharedSecret) |
Parses a token and verifies its signature. More... | |
A token.
|
static |
Generates a signed client join token.
client | The client. |
channelClaim | The channel claim. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client join token.
client | The client. |
channelClaim | The channel claim. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client join token.
client | The client. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client join token.
client | The client. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client join token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
channelClaim | The channel claim. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client join token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
channelClaim | The channel claim. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client join token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client join token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
client | The client. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
client | The client. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
client | The client. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
region | The region of the client. |
|
static |
Generates a signed client register token.
client | The client. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
region | The region of the client. |
|
static |
Generates a signed client register token.
client | The client. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
client | The client. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
client | The client. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
region | The region of the client. |
|
static |
Generates a signed client register token.
client | The client. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
region | The region of the client. |
|
static |
Generates a signed client register token.
client | The client. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
client | The client. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
client | The client. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
region | The region of the client. |
|
static |
Generates a signed client register token.
client | The client. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
region | The region of the client. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
region | The region of the client. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelClaims | The channel claims. |
sharedSecret | The shared secret. |
region | The region of the client. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
region | The region of the client. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelId | The channel identifier. |
sharedSecret | The shared secret. |
region | The region of the client. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
expirationTime | The time the token will expire in UTC. |
region | The region of the client. |
|
static |
Generates a signed client register token.
applicationId | The application identifier. |
userId | The user identifier. |
deviceId | The device identifier. |
clientId | The client identifier. |
clientRoles | The client roles. |
channelIds | The channel identifiers. |
sharedSecret | The shared secret. |
region | The region of the client. |
|
static |
Generates a signed client WebSocket access token.
applicationId | |
userId | |
deviceId | |
clientId | |
sharedSecret |
|
static |
Generates a signed event token.
applicationId | The application identifier. |
sharedSecret | The shared secret. |
|
static |
Generates a signed event token.
applicationId | The application identifier. |
sharedSecret | The shared secret. |
expirationTime | The expiration time. |
String fm.liveswitch.Token.getAlgorithm | ( | ) |
Gets the algorithm.
String fm.liveswitch.Token.getApiServiceId | ( | ) |
Gets the API Service identifier.
String fm.liveswitch.Token.getApplicationId | ( | ) |
Gets the application identifier.
fm.liveswitch.ChannelClaim fm.liveswitch.Token.getChannelClaim | ( | ) |
Gets the first channel claim.
fm.liveswitch.ChannelClaim [] fm.liveswitch.Token.getChannelClaims | ( | ) |
Gets an array of channel claims.
String fm.liveswitch.Token.getClientId | ( | ) |
Gets the client identifier.
String [] fm.liveswitch.Token.getClientRoles | ( | ) |
Gets the client roles.
String fm.liveswitch.Token.getConnectorId | ( | ) |
Gets the Connector identifier.
|
static |
Gets the default token expiry (120 seconds).
String fm.liveswitch.Token.getDeviceId | ( | ) |
Gets the device identifier.
fm.liveswitch.NullableDate fm.liveswitch.Token.getExpirationTime | ( | ) |
Gets the "expires at" date/time.
|
static |
Gets the HMAC SHA-256 algorithm string.
java.util.Date fm.liveswitch.Token.getIssuedAt | ( | ) |
Gets the "issued at" date/time.
String fm.liveswitch.Token.getMediaServerId | ( | ) |
Gets the Media Server identifier.
String fm.liveswitch.Token.getRecordingMonitorId | ( | ) |
Gets the Recording Monitor identifier.
String fm.liveswitch.Token.getRecordingMoverId | ( | ) |
Gets the Recording Mover identifier.
String fm.liveswitch.Token.getRecordingMuxerId | ( | ) |
Gets the Recording Muxer identifier.
String fm.liveswitch.Token.getRegion | ( | ) |
Gets the region.
|
static |
Gets the RSA SHA-256 algorithm string.
String fm.liveswitch.Token.getType | ( | ) |
Gets the type.
String fm.liveswitch.Token.getUserId | ( | ) |
Gets the user identifier.
String fm.liveswitch.Token.getWebSocketMediaServerId | ( | ) |
Gets the Web Socket Media Server identifier.
|
static |
Parses a token string.
tokenString | The token string. |
boolean fm.liveswitch.Token.verify | ( | String | sharedSecret | ) |
Verifies the token signature.
sharedSecret | The shared secret. |
|
static |
Parses a token and verifies its signature.
tokenString | The token string. |
sharedSecret | The shared secret. |