MicroStrategy ONE

Manage Credentials in iOS

MSICredentialsManager is a helper class that performs credentials management. This class provides a set of static methods to update and delete mobile server and project credentials in the preferences store.

+(void)setDefaultServerCredentialsWithUsername:(NSString *) username password:(NSString *) password;

Sets the default authentication credentials for mobile servers

  • Parameter: username
    Sets the username for login
  • Parameter: password
    Sets the password for login  

+(void)setServerCredentials:(WebServerInfo*)server username:(NSString *) username password:(NSString *) password;

Sets the authentication credentials for a specified mobile server

  • Parameter: server
    Sets the mobile server
  • Parameter: username
    Sets the username for login
  • Parameter: password
    Sets the password for login  

+(void)setDefaultProjectCredentialsForWebServer:(WebServerInfo*)server username:(NSString *) username password:(NSString *) password project:(ProjectInfo *) project;

Sets the default authentication credentials for a specified project on a specified mobile server

  • Parameter: server
    Sets the mobile server
  • Parameter: username
    Sets the username for login
  • Parameter: password
    Sets the password for login
  • Parameter: project
    Sets the project   

    This parameter is mainly used for cleaning caches.

+(void)setProjectCredentials:(ProjectInfo *)project username:(NSString *) username password:(NSString *) password;

Sets the authentication credentials for a specified project

  • Parameter:  project
    Sets the project
  • Parameter:  username
    Sets the username for login
  • Parameter:  password
    Sets the password for login

+(void)deleteDefaultServerCredentials;

Deletes the default authentication credentials for mobile servers

+(void)deleteServerCredentials:(WebServerInfo*)server;

Deletes the authentication credentials for a specified mobile server

  • Parameter:  server
    Sets the mobile server

+(void)deleteAllServerCredentials;

Deletes the authentication credentials for all mobile servers, including the default mobile server authentication

+(void)deleteDefaultProjectCredentialsForWebServer:(WebServerInfo*)server;

Deletes the default authentication credentials for a specified mobile server

  • Parameter:  server
    Sets the mobile server

+(void)deleteProjectCredentials:(ProjectInfo *)project;

Deletes the authentication credentials for a specified project

  • Parameter:  project
    Sets the project.

+(void)deleteAllProjectCredentialsForWebServer:(WebServerInfo*)server;

Delete the authentication credentials for all projects of a specified mobile server, including the default project authentication

  • Parameter: server
    Sets the mobile server

+(void)deleteAllProjectCredentials;

Deletes the authentication credentials for all projects of all mobile servers, including the default project authentication

+(void)deleteAllCredentials;

Deletes the authentication credentials for all mobile servers and projects