public class AbstractMapper extends Object
| Constructor and Description |
|---|
AbstractMapper(Session session)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IRestClient |
getClient()
Get the
IRestClient represented by the Session. |
AuthenticatedCredentials |
getCredentials()
The
AuthenticatedCredentials from the Session. |
org.threeten.bp.ZonedDateTime |
getServerTime()
Get the current time from Absio Broker™ application.
|
Session |
getSession()
Get the Absio Broker™ application
Session. |
boolean |
isAuthenticated()
Get the authenticated state of the session.
|
void |
setSession(Session session)
Set the Absio Broker™ application
Session. |
public AbstractMapper(Session session) throws NoSuchPaddingException, NoSuchAlgorithmException
session - the session for the mapperNoSuchPaddingException - thrown if the default padding for symmetric encryption is not supportedNoSuchAlgorithmException - thrown if ECDH is not supportedpublic IRestClient getClient()
IRestClient represented by the Sessionpublic AuthenticatedCredentials getCredentials()
AuthenticatedCredentials from the Session. This will be null if the session is not defined
or authenticated.AuthenticatedCredentials from the Sessionpublic org.threeten.bp.ZonedDateTime getServerTime()
throws IOException,
BrokerException,
InterruptedException
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 Session getSession()
Session. This is the rest client and associated credentials for
the session.Sessionpublic void setSession(Session session)
Session. This is the rest client and associated credentials for
the session.session - the Sessionpublic boolean isAuthenticated()
AuthenticatedCredentials are not null)Copyright © 2021. All rights reserved.