iOS
Visão Geral da Classe
Tipo | Chamada | Exceções |
---|---|---|
AuthcubeSdk |
AuthcubeSdk() (construtor) |
getDeviceInfo
Retorno | Chamada | Exceções |
---|---|---|
String |
getDeviceInfo() |
|
String |
getDeviceInfo(additionalData _data: Dictionary<String, String> = Dictionary()) |
getEncryptedDeviceInfo
Retorno | Chamada | Exceções |
---|---|---|
String |
getEncryptedDeviceInfo(withJwks jwks: String) |
Sim |
String |
getEncryptedDeviceInfo(withJwks jwks: String, withExp exp: Int = 86400) |
Sim |
getCodeVerifier
Retorno | Chamada | Exceções |
---|---|---|
String | getCodeVerifier(length: Int = 128) |
getCodeChallenge
Retorno | Chamada | Exceções |
---|---|---|
String | getCodeChallenge(codeVerifier: String) |
generateKeyPair
Retorno | Chamada | Exceções |
---|---|---|
void | generateKeyPair() | Sim |
registerClient
Retorno | Chamada | Exceções |
---|---|---|
void | registerClient(url: String, accessToken:String? = "") | Sim |
removeClient
Retorno | Chamada | Exceções |
---|---|---|
void | removeClient() |
getClientId
Retorno | Chamada | Exceções |
---|---|---|
String | getClientId() |
clearKeys
Retorno | Chamada | Exceções |
---|---|---|
void | clearKeys() | Sim |
sign
Retorno | Chamada | Exceções |
---|---|---|
String | sign(data: String, exp: Int? = 300, iat: Int? = Int(Date().timeIntervalSince1970)) | Sim |
hasSeed
Retorno | Chamada | Exceções |
---|---|---|
boolean | hasSeed() | |
boolean | hasSeed(identifier: String) | Sim |
setSeed
Retorno | Chamada | Exceções |
---|---|---|
void | setSeed(data: String) | Sim |
deleteSeed
Retorno | Chamada | Exceções |
---|---|---|
void | deleteSeed() | Sim |
generateTOTP
Retorno | Chamada | Exceções |
---|---|---|
String | generateTOTP(now: Int64? = nil) | Sim |
generateHOTP
Retorno | Chamada | Exceções |
---|---|---|
String | generateHOTP(counter: Int64? = nil) | Sim |
generateOCRA
Retorno | Chamada | Exceções |
---|---|---|
String | generateOCRA(question: String) | Sim |