A token. More...
Instance Methods | |
| (NSString *) | - algorithm | 
| Gets the algorithm.  More... | |
| (NSString *) | - apiServiceId | 
| Gets the API Service identifier.  More... | |
| (NSString *) | - applicationId | 
| Gets the application identifier.  More... | |
| (FMLiveSwitchChannelClaim *) | - channelClaim | 
| Gets the first channel claim.  More... | |
| (NSMutableArray *) | - channelClaims | 
| Gets an array of channel claims.  More... | |
| (NSString *) | - clientId | 
| Gets the client identifier.  More... | |
| (NSMutableArray *) | - clientRoles | 
| Gets the client roles.  More... | |
| (NSString *) | - connectorId | 
| Gets the Connector identifier.  More... | |
| (NSString *) | - deviceId | 
| Gets the device identifier.  More... | |
| (FMLiveSwitchNullableDate *) | - expirationTime | 
| Gets the "expires at" date/time.  More... | |
| (NSDate *) | - issuedAt | 
| Gets the "issued at" date/time.  More... | |
| (NSString *) | - mediaServerId | 
| Gets the Media Server identifier.  More... | |
| (NSString *) | - recordingMonitorId | 
| Gets the Recording Monitor identifier.  More... | |
| (NSString *) | - recordingMoverId | 
| Gets the Recording Mover identifier.  More... | |
| (NSString *) | - recordingMuxerId | 
| Gets the Recording Muxer identifier.  More... | |
| (NSString *) | - region | 
| Gets the region.  More... | |
| (NSString *) | - type | 
| Gets the type.  More... | |
| (NSString *) | - userId | 
| Gets the user identifier.  More... | |
| (bool) | - verifyWithSharedSecret: | 
| Verifies the token signature.  More... | |
| (NSString *) | - webSocketMediaServerId | 
| Gets the Web Socket Media Server identifier.  More... | |
A token.
| - (NSString*) algorithm | 
Gets the algorithm.
| - (NSString*) apiServiceId | 
Gets the API Service identifier.
| - (NSString*) applicationId | 
Gets the application identifier.
| - (FMLiveSwitchChannelClaim*) channelClaim | 
Gets the first channel claim.
| - (NSMutableArray*) channelClaims | 
Gets an array of channel claims.
| - (NSString*) clientId | 
Gets the client identifier.
| - (NSMutableArray*) clientRoles | 
Gets the client roles.
| - (NSString*) connectorId | 
Gets the Connector identifier.
| + (int) defaultExpiry | 
Gets the default token expiry (120 seconds).
| - (NSString*) deviceId | 
Gets the device identifier.
| - (FMLiveSwitchNullableDate*) expirationTime | 
Gets the "expires at" date/time.
| + (NSString*) generateClientJoinTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| channelClaim: | (FMLiveSwitchChannelClaim *) | channelClaim | |
| sharedSecret: | (NSString *) | sharedSecret | |
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. | 
| + (NSString*) generateClientJoinTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| channelClaim: | (FMLiveSwitchChannelClaim *) | channelClaim | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientJoinTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
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. | 
| + (NSString*) generateClientJoinTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientJoinTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelClaim: | (FMLiveSwitchChannelClaim *) | channelClaim | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed client join token.
| client | The client. | 
| channelClaim | The channel claim. | 
| sharedSecret | The shared secret. | 
| + (NSString*) generateClientJoinTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelClaim: | (FMLiveSwitchChannelClaim *) | channelClaim | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientJoinTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed client join token.
| client | The client. | 
| channelId | The channel identifier. | 
| sharedSecret | The shared secret. | 
| + (NSString*) generateClientJoinTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| clientRoles: | (NSMutableArray *) | clientRoles | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed client register token.
| client | The client. | 
| channelClaims | The channel claims. | 
| sharedSecret | The shared secret. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelClaims: | (NSMutableArray *) | channelClaims | |
| sharedSecret: | (NSString *) | sharedSecret | |
| region: | (NSString *) | region | |
Generates a signed client register token.
| client | The client. | 
| channelClaims | The channel claims. | 
| sharedSecret | The shared secret. | 
| region | The region of the client. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed client register token.
| client | The client. | 
| channelId | The channel identifier. | 
| sharedSecret | The shared secret. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelId: | (NSString *) | channelId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| region: | (NSString *) | region | |
Generates a signed client register token.
| client | The client. | 
| channelId | The channel identifier. | 
| sharedSecret | The shared secret. | 
| region | The region of the client. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed client register token.
| client | The client. | 
| channelIds | The channel identifiers. | 
| sharedSecret | The shared secret. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
| region: | (NSString *) | region | |
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. | 
| + (NSString*) generateClientRegisterTokenWithClient: | (FMLiveSwitchClient *) | client | |
| channelIds: | (NSMutableArray *) | channelIds | |
| sharedSecret: | (NSString *) | sharedSecret | |
| region: | (NSString *) | region | |
Generates a signed client register token.
| client | The client. | 
| channelIds | The channel identifiers. | 
| sharedSecret | The shared secret. | 
| region | The region of the client. | 
| + (NSString*) generateClientWebSocketAccessTokenWithApplicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed client websocket access token.
| applicationId | |
| userId | |
| deviceId | |
| clientId | |
| sharedSecret | 
| + (NSString*) generateEventTokenWithApplicationId: | (NSString *) | applicationId | |
| sharedSecret: | (NSString *) | sharedSecret | |
Generates a signed event token.
| applicationId | The application identifier. | 
| sharedSecret | The shared secret. | 
| + (NSString*) generateEventTokenWithApplicationId: | (NSString *) | applicationId | |
| sharedSecret: | (NSString *) | sharedSecret | |
| expirationTime: | (NSDate *) | expirationTime | |
Generates a signed event token.
| applicationId | The application identifier. | 
| sharedSecret | The shared secret. | 
| expirationTime | The expiration time. | 
| + (NSString*) hmacSha256Algorithm | 
Gets the HMAC SHA-256 algorithm string.
| - (NSDate*) issuedAt | 
Gets the "issued at" date/time.
| - (NSString*) mediaServerId | 
Gets the Media Server identifier.
| + (FMLiveSwitchToken*) parseWithTokenString: | (NSString *) | tokenString | 
Parses a token string.
| tokenString | The token string. | 
| - (NSString*) recordingMonitorId | 
Gets the Recording Monitor identifier.
| - (NSString*) recordingMoverId | 
Gets the Recording Mover identifier.
| - (NSString*) recordingMuxerId | 
Gets the Recording Muxer identifier.
| - (NSString*) region | 
Gets the region.
| + (NSString*) rsaSha256Algorithm | 
Gets the RSA SHA-256 algorithm string.
| - (NSString*) type | 
Gets the type.
| - (NSString*) userId | 
Gets the user identifier.
| - (bool) verifyWithSharedSecret: | (NSString *) | sharedSecret | 
Verifies the token signature.
| sharedSecret | The shared secret. | 
true if the signature is valid; otherwise, false. Parses a token and verifies its signature.
| tokenString | The token string. | 
| sharedSecret | The shared secret. | 
true if the token string could be parsed and the signature is valid; otherwise, false | - (NSString*) webSocketMediaServerId | 
Gets the Web Socket Media Server identifier.