Individual Events
StartEvent
Initializes and configures the MasterController SDK. It should be invoked before calling most other events. Please check the status and state in the returned StartResultEvent to ensure the SDK has been successfully initialized.
Objective-C - KSMStartEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| locale | NSString* | The default locale of the Application. For example, this will affect messages returned to the Application. The encoding of this string is ASCII and it must be 2 bytes long. |
| version | KSMVersion* | The app version. |
| appName | NSString* | The app name. To distinguish the Applications, an Application must have a name. Applications with different names may have the same version numbers. Encoding of this string is UTF-8 and it has a maximum length of 32 bytes. |
| serverBackend | NSString* | This parameter is optional and should be used when migrating the server backend. Possible values: "maverick", "ssms". It determines the real server backend implementation used by the SDK. If set, the SDK will explicitly use it as a server backend, overriding what is provided in the MC config. The SDK remembers the chosen server backend and implicitly uses it on restart if the serverBackend is not explicitly specified in the RestartEvent. |
Objective-C - KSMStartEventEx
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| ssmsAppConfiguration | KSMSsmsAppConfiguration* | Includes the SSMS app configuration (locale, app name and version). |
| mcConfig | NSString* | MC configuration in JSON format. |
| certificateChain | NSData* | SSL certificate chain in PEM format used to establish connections to SCP services. |
| configurationData | KSMConfigurationData* | Additional configuration data, such as category, tag name, etc. |
| iamCertificateChain | NSData* | SSL certificate chain in PEM format used to establish connections to the IDP service. |
| smartScreenCertificateChain | NSData* | SSL certificate chain in PEM format used to establish connections to SmartScreen services. |
| serverBackend | NSString* | This parameter is optional and should be used when migrating the server backend. Possible values: "maverick", "ssms". It determines the real server backend implementation used by the SDK. If set, the SDK will explicitly use it as a server backend, overriding what is provided in the MC config. The SDK remembers the chosen server backend and implicitly uses it on restart if the serverBackend is not explicitly specified in the RestartEvent. The SDK remembers the chosen server backend and implicitly uses it on restart if the serverBackend is not explicitly specified in the RestartEvent. |
Java - StartEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| locale | String | The default locale of the Application. For example, this will affect messages returned to the Application. The encoding of this string is ASCII and it must be 2 bytes long. |
| version | AppVersion | The app version. |
| appName | String | The app name. To distinguish the Applications, an Application must have a name. Applications with different names may have the same version numbers. Encoding of this string is UTF-8 and it has a maximum length of 32 bytes. |
| mcConfig | String | MC configuration in JSON format. |
| certificateChain | String | SSL certificate chain in PEM format used to establish connections to SCP services |
| sdkConfig | byte[] | SDK configuration in XML format (for SSMS enviroment) or in JSON format (for Maverick enviroment). |
| configurationData | ConfigurationData | Additional configuration data, such as category, tag name, etc. |
| iamCertificateChain | String | SSL certificate chain in PEM format used to establish connections to the IDP service. |
| smartScreenCertificateChain | String | SSL certificate chain in PEM format used to establish connections to SmartScreen services. |
| serverBackend | String | This parameter is optional and should be used when migrating the server backend. Possible values: "maverick", "ssms". It determines the real server backend implementation used by the SDK. If set, the SDK will explicitly use it as a server backend, overriding what is provided in the MC config. The SDK remembers the chosen server backend and implicitly uses it on restart if the serverBackend is not explicitly specified in the RestartEvent. |
StartResultEvent
Provides the status and state of the SDK after its initialization by the StartEvent.
Objective-C - KSMStartResultEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| hasErrorOccurred | BOOL | Set to true if an error occurred. |
| errorCode | long | The error code of the error if any occurred. If hasErrorOccurred is false, this parameter is zero. |
| reportId | long | The SSMS report id related to an error if any occured. If hasErrorOccurred is false, this parameter is zero. |
| errorDescription | NSString* | The description of the error if any occurred. If hasErrorOccurred is false, this parameter is empty. |
| status | KSMEventStatusType | The status of the operation. |
| sdkState | KSMSdkState | The current state of SDK. |
| userList | NSArray<KsUserIdentifier*>* | The list of activated users. |
| userDetailsList | NSArray<KsUserDetails> | The list of activated user details. |
| supportedFeatures | NSUInteger | The supported features bitmap. Refer to SupportedFeatures to see the meaning of each bit. |
Java - StartResultEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| hasErrorOccurred | boolean | Set to true if an error occurred. |
| errorCode | int | The error code of the error if any occurred. If hasErrorOccurred is false, this parameter is zero. |
| reportId | int | The SSMS report id related to an error if any occured. If hasErrorOccurred is false, this parameter is zero. |
| errorDescription | String | The description of the error if any occurred. If hasErrorOccurred is false, this parameter is empty. |
| status | StatusType | The status of the operation. |
| sdkState | SdkState | The current state of SDK. |
| userList | List<UserIdentifier> | The list of activated users. |
| userDetailsList | List<UserDetails> | The list of activated user details. |
| supportedFeatures | BitSet | The supported features bitmap. Refer to SupportedFeatures to see the meaning of each bit. |
RestartEvent
Reinitializes and reconfigures the MasterController SDK. Please check the status and state in the returned RestartResultEvent to ensure the SDK has been successfully restarted.
Objective-C - KSMRestartEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| locale | NSString* | The default locale of the Application. For example, this will affect messages returned to the Application. The encoding of this string is ASCII and it must be 2 bytes long. |
| version | KSMVersion* | The app version. |
| appName | NSString* | The app name. To distinguish the Applications, an Application must have a name. Applications with different names may have the same version numbers. Encoding of this string is UTF-8 and it has a maximum length of 32 bytes. |
| serverBackend | NSString* | This parameter is optional and should be used when migrating the server backend. Possible values: "maverick", "ssms". It determines the real server backend implementation used by the SDK. If set, the SDK will explicitly use it as a server backend, overriding what is provided in the MC config. The SDK remembers the chosen server backend and implicitly uses it on the subsequent restart if the serverBackend is not explicitly specified in the RestartEvent. |
Objective-C - KSMRestartEventEx
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| ssmsAppConfiguration | KSMSsmsAppConfiguration* | Includes the SSMS app configuration (locale, app name and version). |
| mcConfig | NSString* | MC configuration in JSON format. |
| certificateChain | NSData* | SSL certificate chain in PEM format used to establish connections to SCP services. |
| iamCertificateChain | NSData* | SSL certificate chain in PEM format used to establish connections to the IDP service. |
| smartScreenCertificateChain | NSData* | SSL certificate chain in PEM format used to establish connections to SmartScreen services. |
| serverBackend | NSString* | This parameter is optional and should be used when migrating the server backend. Possible values: "maverick", "ssms". It determines the real server backend implementation used by the SDK. If set, the SDK will explicitly use it as a server backend, overriding what is provided in the MC config. The SDK remembers the chosen server backend and implicitly uses it on the subsequent restart if the serverBackend is not explicitly specified in the RestartEvent. |
Java - RestartEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| locale | String | The default locale of the Application. For example, this will affect messages returned to the Application. The encoding of this string is ASCII and it must be 2 bytes long. |
| version | AppVersion | The app version. |
| appName | String | The app name. To distinguish the Applications, an Application must have a name. Applications with different names may have the same version numbers. Encoding of this string is UTF-8 and it has a maximum length of 32 bytes. |
| mcConfig | String | MC configuration in JSON format. |
| certificateChain | String | SSL certificate chain in PEM format used to establish connections to SCP services |
| sdkConfig | byte[] | SDK configuration in XML format (for SSMS enviroment) or in JSON format (for Maverick enviroment). |
| iamCertificateChain | String | SSL certificate chain in PEM format used to establish connections to the IDP service. |
| smartScreenCertificateChain | String | SSL certificate chain in PEM format used to establish connections to SmartScreen services. |
| serverBackend | String | This parameter is optional and should be used when migrating the server backend. Possible values: "maverick", "ssms". It determines the real server backend implementation used by the SDK. If set, the SDK will explicitly use it as a server backend, overriding what is provided in the MC config. The SDK remembers the chosen server backend and implicitly uses it on the subsequent restart if the serverBackend is not explicitly specified in the RestartEvent. |
RestartResultEvent
Provides the status and state of the SDK after its initialization by the RestartEvent.
Objective-C - KSMRestartResultEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| hasErrorOccurred | BOOL | Set to true if an error occurred. |
| errorCode | long | The error code of the error if any occurred. If hasErrorOccurred is false, this parameter is zero. |
| reportId | long | The SSMS report id related to an error if any occured. If hasErrorOccurred is false, this parameter is zero. |
| errorDescription | NSString* | The description of the error if any occurred. If hasErrorOccurred is false, this parameter is empty. |
| status | KSMEventStatusType | The status of the operation. |
| sdkState | KSMSdkState | The current state of SDK. |
| userList | NSArray<KsUserIdentifier*>* | The list of activated users. |
| userDetailsList | NSArray<KsUserDetails> | The list of activated user details. |
| supportedFeatures | NSUInteger | The supported features bitmap. Refer to SupportedFeatures to see the meaning of each bit. |
Java - RestartResultEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| hasErrorOccurred | boolean | Set to true if an error occurred. |
| errorCode | int | The error code of the error if any occurred. If hasErrorOccurred is false, this parameter is zero. |
| reportId | int | The SSMS report id related to an error if any occured. If hasErrorOccurred is false, this parameter is zero. |
| errorDescription | String | The description of the error if any occurred. If hasErrorOccurred is false, this parameter is empty. |
| status | StatusType | The status of the operation. |
| sdkState | SdkState | The current state of SDK. |
| userList | List<UserIdentifier> | The list of activated users. |
| userDetailsList | List<UserDetails> | The list of activated user details. |
| supportedFeatures | BitSet | The supported features bitmap. Refer to SupportedFeatures to see the meaning of each bit. |
GetSsmsUserListEvent
Returns the list of activated SSMS users. This event is needed for SSMS to Maverick migration use cases. Can be used only in the Maverick server backend environment. Can be invoked right after the StartEvent. Please check the returned GetSsmsUserListResultEvent to get the SSMS users.
Objective-C - KSMGetSsmsUserListEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| userCredentialPath | NSString* | The path to the user credentials required to read the locally stored SSMS user list. This parameter is optional and should be specified if the path was previously customized. |
Java - GetSsmsUserListEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| userCredentialPath | String | The path to the user credentials required to read the locally stored SSMS user list. This parameter is optional and should be specified if the path was previously customized. |
GetSsmsUserListResultEvent
Provides the result of the GetSsmsUserListEvent.
Objective-C - KSMGetSsmsUserListResultEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| hasErrorOccurred | BOOL | Set to true if an error occurred. |
| errorCode | long | The error code of the error if any occurred. If hasErrorOccurred is false, this parameter is zero. |
| reportId | long | The SSMS report id related to an error if any occured. If hasErrorOccurred is false, this parameter is zero. |
| errorDescription | NSString* | The description of the error if any occurred. If hasErrorOccurred is false, this parameter is empty. |
| status | KSMEventStatusType | The status of the operation. |
| userList | NSArray<KsUserIdentifier*>* | The SSMS user list. |
Java - GetSsmsUserListResultEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| hasErrorOccurred | boolean | Set to true if an error occurred. |
| errorCode | int | The error code of the error if any occurred. If hasErrorOccurred is false, this parameter is zero. |
| reportId | int | The SSMS report id related to an error if any occured. If hasErrorOccurred is false, this parameter is zero. |
| errorDescription | String | The description of the error if any occurred. If hasErrorOccurred is false, this parameter is empty. |
| status | StatusType | The status of the operation. |
| userList | List<UserIdentifier> | The SSMS user list. |
EnrollAnonymousUserEvent
Initiates the enrollment process for an anonymous user. In anonymous enrollment, the IDP doesn't know any details about the user (such as a name or an email address), but it will be able to recognize and authenticate the user in subsequent flows. Can be used only in the Maverick server backend environment. Can be invoked right after the StartEvent. Please check the returned StatusResultEvent to find out the enrollment status.
Objective-C - KSMEnrollAnonymousUserEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext* | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| tenantId | NSString* | The tenant id. The realm in terms of the IdP. |
| authenticationMode | KSMAuthenticationMode | The type of authentication used to protect and authenticate user credentials. |
| clientId | NSString* | The IdP client id used in token requests. |
Java - EnrollAnonymousUserEvent
Parameters
| Name | Type | Description |
|---|---|---|
| traceContext | TraceContext | The trace context that should be used for all interactions inside the SDK related to the event. If nothing is passed here the SDK will create a context by itself and uses it explicitly for this event. |
| tenantId | String | The tenant id. The realm in terms of the IdP. |
| authenticationMode | AuthenticationMode | The type of authentication used to protect and authenticate user credentials. |
| clientId | String | The IdP client id used in token requests. |