Class PasswordAuthTokenAPIHandler.Conf<T extends PasswordAuthTokenAPIHandler.Conf<T>>
- java.lang.Object
-
- co.arago.hiro.client.connection.AbstractAPIHandler.Conf<T>
-
- co.arago.hiro.client.connection.AbstractVersionAPIHandler.Conf<T>
-
- co.arago.hiro.client.connection.token.AbstractTokenAPIHandler.Conf<T>
-
- co.arago.hiro.client.connection.token.AbstractRemoteAuthTokenAPIHandler.Conf<T>
-
- co.arago.hiro.client.connection.token.PasswordAuthTokenAPIHandler.Conf<T>
-
- All Implemented Interfaces:
HttpClientHandler.ConfTemplate<T>
- Direct Known Subclasses:
PasswordAuthTokenAPIHandler.Builder
- Enclosing class:
- PasswordAuthTokenAPIHandler
public abstract static class PasswordAuthTokenAPIHandler.Conf<T extends PasswordAuthTokenAPIHandler.Conf<T>> extends AbstractRemoteAuthTokenAPIHandler.Conf<T>
-
-
Constructor Summary
Constructors Constructor Description Conf()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PasswordAuthTokenAPIHandlerbuild()java.lang.StringgetPassword()java.lang.StringgetUsername()TsetCredentials(java.lang.String username, java.lang.String password, java.lang.String clientId, java.lang.String clientSecret)Shorthand to set all credentials at once.TsetPassword(java.lang.String password)TsetUsername(java.lang.String username)-
Methods inherited from class co.arago.hiro.client.connection.token.AbstractRemoteAuthTokenAPIHandler.Conf
getApiPath, getClientId, getClientSecret, getForceLogging, getOrganization, getOrganizationId, getRefreshOffset, setApiPath, setClientId, setClientSecret, setForceLogging, setOrganization, setOrganizationId, setRefreshOffset
-
Methods inherited from class co.arago.hiro.client.connection.AbstractVersionAPIHandler.Conf
getSharedConnectionHandler, setSharedConnectionHandler
-
Methods inherited from class co.arago.hiro.client.connection.AbstractAPIHandler.Conf
getAcceptAllCerts, getConnectTimeout, getCookieManager, getHttpClient, getHttpClientAutoClose, getHttpClientHandler, getHttpRequestTimeout, getMaxBinaryLogLength, getMaxConnectionPool, getMaxRetries, getProxy, getRootApiURI, getShutdownTimeout, getSslContext, getSslParameters, getUserAgent, getWebSocketURI, isFollowRedirects, self, setAcceptAllCerts, setConnectTimeout, setCookieManager, setFollowRedirects, setHttpClient, setHttpClientAutoClose, setHttpClientHandler, setHttpRequestTimeout, setMaxBinaryLogLength, setMaxConnectionPool, setMaxRetries, setProxy, setRootApiURI, setRootApiURI, setShutdownTimeout, setSslContext, setSslParameters, setUserAgent, setWebSocketURI, setWebSocketURI
-
-
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
-
setUsername
public T setUsername(java.lang.String username)
- Parameters:
username- HIRO username for user account- Returns:
AbstractAPIHandler.Conf.self()
-
getPassword
public java.lang.String getPassword()
-
setPassword
public T setPassword(java.lang.String password)
- Parameters:
password- HIRO password for user account- Returns:
AbstractAPIHandler.Conf.self()
-
setCredentials
public T setCredentials(java.lang.String username, java.lang.String password, java.lang.String clientId, java.lang.String clientSecret)
Shorthand to set all credentials at once.- Overrides:
setCredentialsin classAbstractRemoteAuthTokenAPIHandler.Conf<T extends PasswordAuthTokenAPIHandler.Conf<T>>- Parameters:
username- HIRO username for user accountpassword- HIRO password for user accountclientId- HIRO client_id of appclientSecret- HIRO client_secret of app- Returns:
AbstractAPIHandler.Conf.self()
-
build
public abstract PasswordAuthTokenAPIHandler build()
- Specified by:
buildin classAbstractRemoteAuthTokenAPIHandler.Conf<T extends PasswordAuthTokenAPIHandler.Conf<T>>
-
-