Package io.seald.seald_sdk
Class SealdSSKSTmrPlugin
-
- All Implemented Interfaces:
public final class SealdSSKSTmrPluginThe SealdSSKSTmrPlugin class allows to use the SSKS key storage service to store Seald identities easily and securely, encrypted by a key stored on your back-end server.
-
-
Method Summary
Modifier and Type Method Description final UnitsaveIdentity(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey, ByteArray identity)Save the Seald account to SSKS. final UnitsaveIdentityAsync(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey, ByteArray identity)Save the Seald account to SSKS. final RetrieveIdentityResponseretrieveIdentity(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey)Retrieve the Seald account previously saved with SealdSSKSTmrPlugin.saveIdentity.final RetrieveIdentityResponseretrieveIdentityAsync(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey)Retrieve the Seald account previously saved with SealdSSKSTmrPlugin.saveIdentity.-
-
Constructor Detail
-
SealdSSKSTmrPlugin
SealdSSKSTmrPlugin(String ssksURL, String appId, String instanceName, Byte logLevel, Boolean logNoColor)
- Parameters:
ssksURL- The SSKS server for this instance to use.appId- The ID given by the Seald server to your app.instanceName- An arbitrary name to give to this Seald instance.logLevel- The minimum level of logs you want.logNoColor- Should be set tofalseif you want to enable colors in the log output.
-
-
Method Detail
-
saveIdentity
final Unit saveIdentity(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey, ByteArray identity)
Save the Seald account to SSKS.
- Parameters:
sessionId- Session ID given by SSKS to your app's server.authFactor- Authentication method of this user, to which SSKS has sent a challenge at the request of your app's server.challenge- The challenge sent by SSKS to the user's authentication method.rawTMRSymKey- The raw encryption key used to encrypt / decrypt the stored identity keys.identity- The identity to save.
-
saveIdentityAsync
final Unit saveIdentityAsync(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey, ByteArray identity)
Save the Seald account to SSKS.
- Parameters:
sessionId- Session ID given by SSKS to your app's server.authFactor- Authentication method of this user, to which SSKS has sent a challenge at the request of your app's server.challenge- The challenge sent by SSKS to the user's authentication method.rawTMRSymKey- The raw encryption key used to encrypt / decrypt the stored identity keys.identity- The identity to save.
-
retrieveIdentity
final RetrieveIdentityResponse retrieveIdentity(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey)
Retrieve the Seald account previously saved with
SealdSSKSTmrPlugin.saveIdentity.- Parameters:
sessionId- Session ID given by SSKS to your app's server.authFactor- Authentication method of this user, to which SSKS has sent a challenge at the request of your app's server.challenge- The challenge sent by SSKS to the user's authentication method.rawTMRSymKey- The raw encryption key used to encrypt / decrypt the stored identity keys.
-
retrieveIdentityAsync
final RetrieveIdentityResponse retrieveIdentityAsync(String sessionId, AuthFactor authFactor, String challenge, ByteArray rawTMRSymKey)
Retrieve the Seald account previously saved with
SealdSSKSTmrPlugin.saveIdentity.- Parameters:
sessionId- Session ID given by SSKS to your app's server.authFactor- Authentication method of this user, to which SSKS has sent a challenge at the request of your app's server.challenge- The challenge sent by SSKS to the user's authentication method.rawTMRSymKey- The raw encryption key used to encrypt / decrypt the stored identity keys.
-
-
-
-