public interface SecureStorage
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword()
Returns the password used to access the storage.
|
SecretKey |
readCurrentKey()
Reads the current key.
|
SecretKey |
readInitialKey()
Reads the initial key.
|
byte[] |
sign(byte[] signedData)
Signs the provided data.
|
boolean |
verify(byte[] signedData,
byte[] signature)
Verifies that signed data corresponds to signature.
|
void |
writeCurrentKey(SecretKey key)
Writes the current key.
|
void |
writeCurrentSignatureKey(SecretKey key)
Writes the current signature key.
|
void |
writeInitialKey(SecretKey key)
Writes the initial key.
|
void writeCurrentSignatureKey(SecretKey key) throws SecureStorageException
key - The secret keySecureStorageException - If an errors occurs.SecretKey readCurrentKey() throws SecureStorageException
SecureStorageException - If an errors occurs.void writeCurrentKey(SecretKey key) throws SecureStorageException
key - the current keySecureStorageException - If an errors occurs.SecretKey readInitialKey() throws SecureStorageException
SecureStorageException - If an errors occurs.void writeInitialKey(SecretKey key) throws SecureStorageException
key - the initial keySecureStorageException - If an errors occurs.byte[] sign(byte[] signedData)
throws SecureStorageException
signedData - The data to sign.SecureStorageException - If an error occured during signing process.boolean verify(byte[] signedData,
byte[] signature)
throws SecureStorageException
signedData - the data to verifysignature - the signaturetrue if data corresponds, false otherwiseSecureStorageException - If an error occured during the verification process.String getPassword()
Copyright © 2025 Open Identity Platform Community. All rights reserved.