Class AbstractDataClient

java.lang.Object
fr.paris.lutece.plugins.oauth2.dataclient.AbstractDataClient
All Implemented Interfaces:
DataClient
Direct Known Subclasses:
AbstractJWTDataClient, LogUserInfoDataClient

public abstract class AbstractDataClient extends Object implements DataClient
DataClient
  • Constructor Details

    • AbstractDataClient

      public AbstractDataClient()
  • Method Details

    • getName

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

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

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

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

      public 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 String getRedirectUri()
      Returns the RedirectUri
      Specified by:
      getRedirectUri in interface DataClient
      Returns:
      The RedirectUri
    • setRedirectUri

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

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

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

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

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

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

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

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

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

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

      public 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, 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