public class UserMapper extends AbstractMapper
| Constructor and Description |
|---|
UserMapper(Session session)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UUID |
create(List<IndexedECPrivateKey> keys)
Create a user on the Absio Broker™ application.
|
void |
delete()
Deletes the authenticated user from the server.
|
void |
logIn(KeyRing keyRing)
Uses the provided KeyRing to authenticate with the Absio Broker™ application.
|
getClient, getCredentials, getServerTime, getSession, isAuthenticated, setSessionpublic UserMapper(Session session) throws NoSuchAlgorithmException, NoSuchPaddingException
session - the session for the mapperNoSuchPaddingException - thrown if the default padding for symmetric encryption is not supportedNoSuchAlgorithmException - thrown if ECDH is not supportedpublic UUID create(List<IndexedECPrivateKey> keys) throws IOException, BrokerException, InterruptedException
keys - the set of private keys for the new user - ONLY the public portion will be passed to Absio
Broker™ applicationUUIDBrokerException - thrown when the Absio Broker™ application has an issue with the requestIOException - thrown when there are any IO issuesInterruptedException - thrown when there is an interruption during rate limitingpublic void delete()
throws IOException,
BrokerException,
InterruptedException
NOTE: this cannot be undone!
BrokerException - thrown when the Absio Broker™ application has an issue with the requestIOException - thrown when there are any IO issuesInterruptedException - thrown when there is an interruption during rate limitingpublic void logIn(KeyRing keyRing) throws BrokerException, SignatureException, IOException, InvalidKeyException, InterruptedException
keyRing - the user's private key ring.BrokerException - thrown when the Absio Broker™ application has an issue with the requestSignatureException - thrown when there was an error signing data to be sent to Absio Broker™
applicationIOException - thrown when there are any IO issuesInvalidKeyException - thrown when there was an error with the key for signing data to be sent to Absio
Broker™ applicationInterruptedException - thrown when there is an interruption during rate limitingCopyright © 2021. All rights reserved.