Class AbstractRemoteAuthTokenAPIHandler.Conf<T extends AbstractRemoteAuthTokenAPIHandler.Conf<T>>

    • Constructor Detail

      • Conf

        public Conf()
    • Method Detail

      • getOrganization

        public java.lang.String getOrganization()
      • setOrganization

        public T setOrganization​(java.lang.String organization)
        Parameters:
        organization - Optional HIRO organization name for returned token
        Returns:
        AbstractAPIHandler.Conf.self()
      • getOrganizationId

        public java.lang.String getOrganizationId()
      • setOrganizationId

        public T setOrganizationId​(java.lang.String organizationId)
        Parameters:
        organizationId - Optional HIRO organization id for returned token. Overrides organziation field.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getClientId

        public java.lang.String getClientId()
      • getClientSecret

        public java.lang.String getClientSecret()
      • setClientSecret

        public T setClientSecret​(java.lang.String clientSecret)
        Parameters:
        clientSecret - HIRO client_secret of app
        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.
        Parameters:
        username - HIRO username for user account
        password - HIRO password for user account
        clientId - HIRO client_id of app
        clientSecret - HIRO client_secret of app
        Returns:
        AbstractAPIHandler.Conf.self()
      • getRefreshOffset

        public java.lang.Long getRefreshOffset()
      • setRefreshOffset

        public T setRefreshOffset​(java.lang.Long refreshOffset)
        Timespan that gets subtracted from the official expiration instant of a token so the token can be refreshed before it runs out. Default is 5000 (5s).
        Parameters:
        refreshOffset - Offset in ms
        Returns:
        AbstractAPIHandler.Conf.self()
      • getForceLogging

        public boolean getForceLogging()
      • setForceLogging

        public T setForceLogging​(boolean forceLogging)
        Force logging of insecure request / response data. USE ONLY FOR DEBUGGING PURPOSES!!!
        Parameters:
        forceLogging - the flag to set.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getApiPath

        public java.lang.String getApiPath()
      • setApiPath

        public T setApiPath​(java.lang.String apiPath)
        Parameters:
        apiPath - The apiPath set externally. Overrides the fetching of the endpoint via /api/version.
        Returns:
        AbstractAPIHandler.Conf.self()