Class AbstractDataClient

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAcrValues()
      Returns the set of ACR values
      java.util.Set getAcrValuesSet()
      Returns the set of ACR
      java.lang.String getData​(Token token)
      Send an authenticated request with the access token to retreive data
      java.lang.String getDataServerUri()
      java.lang.String getName()
      Returns the Name
      java.lang.String getPostLogoutRedirectUri()
      Returns the PostLogoutRedirectUri
      java.lang.String getRedirectUri()
      Returns the RedirectUri
      java.util.Set getScope()
      Returns the Scopes set
      java.lang.String getScopes()
      Build a string that contains the list of scope separated by a plus
      java.lang.String getTokenMethod()
      void handleError​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String strError)
      Method call if an error appear
      boolean isDefault()  
      void setAcrValuesSet​(java.util.Set acrValues)
      Set ACR values set
      void setDataServerUri​(java.lang.String strDataServerUri)
      void setDefault​(boolean _bDefault)  
      void setName​(java.lang.String strName)
      Sets the Name
      void setPostLogoutRedirectUri​(java.lang.String _strPostLogoutRedirectUri)
      Sets the PostLogoutRedirectUri
      void setRedirectUri​(java.lang.String strRedirectUri)
      Sets the RedirectUri
      void setScope​(java.util.Set scope)
      Sets the Scope
      void setTokenMethod​(java.lang.String strTokenMethod)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractDataClient

        public AbstractDataClient()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the Name
        Specified by:
        getName in interface DataClient
        Returns:
        The Name
      • setName

        public void setName​(java.lang.String strName)
        Sets the Name
        Specified by:
        setName in interface DataClient
        Parameters:
        strName - The Name
      • getScope

        public java.util.Set getScope()
        Returns the Scopes set
        Specified by:
        getScope in interface DataClient
        Returns:
        The Scope
      • setScope

        public void setScope​(java.util.Set scope)
        Sets the Scope
        Specified by:
        setScope in interface DataClient
        Parameters:
        scope - The Scope
      • getScopes

        public java.lang.String getScopes()
        Build a string that contains the list of scope separated by a plus
        Specified by:
        getScopes in interface DataClient
        Returns:
        The scopes
      • getRedirectUri

        public java.lang.String getRedirectUri()
        Returns the RedirectUri
        Specified by:
        getRedirectUri in interface DataClient
        Returns:
        The RedirectUri
      • setRedirectUri

        public void setRedirectUri​(java.lang.String strRedirectUri)
        Sets the RedirectUri
        Specified by:
        setRedirectUri in interface DataClient
        Parameters:
        strRedirectUri - The RedirectUri
      • getAcrValuesSet

        public java.util.Set getAcrValuesSet()
        Returns the set of ACR
        Specified by:
        getAcrValuesSet in interface DataClient
        Returns:
        The set of ACR
      • setAcrValuesSet

        public void setAcrValuesSet​(java.util.Set acrValues)
        Set ACR values set
        Specified by:
        setAcrValuesSet in interface DataClient
        Parameters:
        acrValues - The ACR values set
      • getAcrValues

        public java.lang.String getAcrValues()
        Returns the set of ACR values
        Specified by:
        getAcrValues in interface DataClient
        Returns:
        The set of ACR values
      • getDataServerUri

        public java.lang.String getDataServerUri()
        Specified by:
        getDataServerUri in interface DataClient
        Returns:
        the DataServerUri
      • setDataServerUri

        public void setDataServerUri​(java.lang.String strDataServerUri)
        Specified by:
        setDataServerUri in interface DataClient
        Parameters:
        strDataServerUri - the DataServerUri to set
      • getTokenMethod

        public java.lang.String getTokenMethod()
        Specified by:
        getTokenMethod in interface DataClient
        Returns:
        the TokenMethod
      • setTokenMethod

        public void setTokenMethod​(java.lang.String strTokenMethod)
        Specified by:
        setTokenMethod in interface DataClient
        Parameters:
        strTokenMethod - the TokenMethod to set
      • getPostLogoutRedirectUri

        public java.lang.String getPostLogoutRedirectUri()
        Returns the PostLogoutRedirectUri
        Specified by:
        getPostLogoutRedirectUri in interface DataClient
        Returns:
        The PostLogoutRedirectUri
      • setPostLogoutRedirectUri

        public void setPostLogoutRedirectUri​(java.lang.String _strPostLogoutRedirectUri)
        Sets the PostLogoutRedirectUri
        Specified by:
        setPostLogoutRedirectUri in interface DataClient
        Parameters:
        _strPostLogoutRedirectUri - The PostLogoutRedirectUri
      • getData

        public java.lang.String getData​(Token token)
        Send an authenticated request with the access token to retreive data
        Parameters:
        token - The token
        Returns:
        The response
      • handleError

        public void handleError​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                java.lang.String strError)
        Description copied from interface: DataClient
        Method call if an error appear
        Specified by:
        handleError in interface DataClient
        Parameters:
        request - HttpServletRequest request
        response - HttpServletResponse response
        strError - String strError
      • isDefault

        public boolean isDefault()
        Specified by:
        isDefault in interface DataClient
        Returns:
        true if the dataclient is a default data client
      • setDefault

        public void setDefault​(boolean _bDefault)
        Specified by:
        setDefault in interface DataClient
        Parameters:
        _bDefault - true if the dataclient is a default data client