Android
AuthcubeSdk
Tipo | Chamada | Exceções |
---|---|---|
AuthcubeSdk | AuthcubeSdk(Context context) |
Disclaimer: Clientes que possuem versões de SDK para Android igual ou anteriores a versão 2.4.X não poderão apenas atualizar as suas respectivas versões, deverão procurar o time de professional services do Authcube para orientá-los na estratégia de migração. Ao não efetuar a estratégia de migração de versão corretamente, os clientes poderão gerar impactos para o cliente final, no aplicativo, tais como:
- Não reconhecimento correto de um dispositivo já existente
- Gerar uma fricção e um novo enrollment de dispositivo e MFA
- Impossibilitar o uso da seed existente, sendo necessário um novo enrollment (TOTP e HOTP)
getDeviceInfo
Retorno | Chamada | Exceções |
---|---|---|
String | getDeviceInfo() | |
String | getDeviceInfo(Map |
getEncryptedDeviceInfo
Retorno | Chamada | Exceções |
---|---|---|
String | getEncryptedDeviceInfo(jwks: String) | |
String | getEncryptedDeviceInfo(jwks: String, exp: int) |
getCodeVerifier
Retorno | Chamada | Exceções |
---|---|---|
String | getCodeVerifier() | |
String | getCodeVerifier(int length) |
getCodeChallenge
Retorno | Chamada | Exceções |
---|---|---|
String | getCodeChallenge(String code) |
generateKeyPair
Retorno | Chamada | Exceções |
---|---|---|
void | generateKeyPair() | Exception |
void | generateKeyPair(String key) | Exception |
void | generateKeyPair(String kty, String alg) | Exception |
registerClient
Retorno | Chamada | Exceções |
---|---|---|
String | registerClient(String url) | Exception |
String | registerClient(String url, String authorization) | Exception |
removeClient
Retorno | Chamada | Exceções |
---|---|---|
void | removeClient() |
getClientId
Retorno | Chamada | Exceções |
---|---|---|
String | getClientId() | Exception |
clearKeys
Retorno | Chamada | Exceções |
---|---|---|
void | clearKeys() |
sign
Retorno | Chamada | Exceções |
---|---|---|
String | sign(String json_to_sign) | Exception |
String | sign(String json_to_sign, int exp) | Exception |
String | sign(String data, int exp, long iat) | Exception |
hasSeed
Retorno | Chamada | Exceções |
---|---|---|
boolean | hasSeed() |
hasSeedForIdentifier
Retorno | Chamada | Exceções |
---|---|---|
boolean | hasSeedForIdentifier(String identifier) | InvalidIdentifierException |
setSeed
Retorno | Chamada | Exceções |
---|---|---|
void | setSeed(String data) | Exception |
deleteSeed
Retorno | Chamada | Exceções |
---|---|---|
void | deleteSeed() |
generateTOTP
Retorno | Chamada | Exceções |
---|---|---|
String | generateTOTP() | Exception |
String | generateTOTP(Date now) | Exception |
String | generateTOTP(long timeInSeconds) | Exception |
generateHOTP
Retorno | Chamada | Exceções |
---|---|---|
String | generateHOTP() | Exception |
String | generateHOTP(Long counter) | Exception |
generateOCRA
Retorno | Chamada | Exceções |
---|---|---|
String | generateOCRA(String question) | Exception |