Package-level declarations

Types

Link copied to clipboard
sealed class ApiResult

Encapsulates a generic API result.

Link copied to clipboard

Encapsulates an authentication information.

Link copied to clipboard

Encapsulates an authentication provider responsible to generating authentication information required to sign into the backend.

Link copied to clipboard
data class AuthenticationTokens(val idToken: String, val accessToken: String, val refreshToken: String, val lifetime: Int)

Encapsulates the authentication tokens obtained from a successful authentication.

Link copied to clipboard
interface AuthUI

Responsible for managing the authentication flow for browser based federated sign in.

Link copied to clipboard
class CognitoAuthUI(val config: JSONObject, val context: Context) : AuthUI

AuthUI implementation that uses Cognito Auth UI.

Link copied to clipboard

Default logger.

Link copied to clipboard
class DefaultSudoUserClient(context: Context, namespace: String = "ids", logger: Logger = DefaultLogger.instance, config: JSONObject? = null, keyManager: KeyManagerInterface? = null, identityProvider: IdentityProvider? = null, apiClient: GraphQLClient? = null, credentialsProvider: CognitoCredentialsProvider? = null, authUI: AuthUI? = null, idGenerator: IdGenerator = IdGenerateImpl(), databaseName: String = AndroidSQLiteStore.DEFAULT_DATABASE_NAME) : SudoUserClient

Default implementation of SudoUserClient interface.

Link copied to clipboard

Encapsulates a federated sign-in result.

Link copied to clipboard

Encapsulates interface requirements for an external identity provider to register and authenticate an identity within Sudo platform ecosystem.

Link copied to clipboard

Default ID generator implementation.

Link copied to clipboard
interface IdGenerator

Interface for generating universally unique identifiers (UUIDs).

Link copied to clipboard
data class JWT(val issuer: String, val audience: String, val subject: String, val id: String? = null, val algorithm: String = DEFAULT_ALGORITHM, val keyId: String? = null, val expiry: Date = Date(Date().time + (DEFAULT_LIFETIME * 1000)), val issuedAt: Date = Date(), val notValidBefore: Date? = null, val payload: JSONObject = JSONObject())

Encapsulates a JSON Web Token.

Link copied to clipboard

Authentication info consisting of a JWT signed using the locally stored private key.

Link copied to clipboard
class LocalAuthenticationProvider(name: String, privateKey: String, publicKey: String?, keyManager: KeyManagerInterface, keyId: String, username: String, customAttributes: Map<String, Any>? = null) : AuthenticationProvider

Authentication provider for generating authentication info using a locally stored private key.

Link copied to clipboard

Generates a password complying to a specific set of rules.

Link copied to clipboard

Default password generator implementation.

Link copied to clipboard
data class PublicKey(val keyId: String, val publicKey: ByteArray, val algorithm: String = RSA, val symmetricAlgorithm: String = AES_256)

Encapsulates a public key used for asymmetric cryptographic operations.

Link copied to clipboard
sealed class RegisterResult

Encapsulates a registration result.

Link copied to clipboard
sealed class SignInResult

Encapsulates a sign-in result.

Link copied to clipboard

List of possible values for sign in status.

Link copied to clipboard

Protocol for sign in status observer. If you wish to observe the the changes to the progress of sign in or refresh token operation then you must implement this protocol.

Link copied to clipboard
interface SudoUserClient

Interface encapsulating a library of functions for calling Sudo Platform identity service, managing keys, performing cryptographic operations.

Link copied to clipboard

Authentication info consisting of a JWT signed using the TEST registration key.

Link copied to clipboard
class TESTAuthenticationProvider(name: String, privateKey: String, publicKey: String?, keyManager: KeyManagerInterface, keyId: String = REGISTER_KEY_NAME, customAttributes: Map<String, Any>? = null) : AuthenticationProvider

Authentication provider for generating authentication info using a TEST registration key.