Class AbstractDataClient
java.lang.Object
fr.paris.lutece.plugins.oauth2.dataclient.AbstractDataClient
- All Implemented Interfaces:
DataClient
- Direct Known Subclasses:
AbstractJWTDataClient,LogUserInfoDataClient
DataClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of ACR valuesReturns the set of ACRSend an authenticated request with the access token to retreive datagetName()Returns the NameReturns the PostLogoutRedirectUriReturns the RedirectUrigetScope()Returns the Scopes setBuild a string that contains the list of scope separated by a plusvoidhandleError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String strError) Method call if an error appearbooleanvoidsetAcrValuesSet(Set acrValues) Set ACR values setvoidsetDataServerUri(String strDataServerUri) voidsetDefault(boolean _bDefault) voidSets the NamevoidsetPostLogoutRedirectUri(String _strPostLogoutRedirectUri) Sets the PostLogoutRedirectUrivoidsetRedirectUri(String strRedirectUri) Sets the RedirectUrivoidSets the ScopevoidsetTokenMethod(String strTokenMethod) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.oauth2.dataclient.DataClient
handleToken
-
Constructor Details
-
AbstractDataClient
public AbstractDataClient()
-
-
Method Details
-
getName
Returns the Name- Specified by:
getNamein interfaceDataClient- Returns:
- The Name
-
setName
Sets the Name- Specified by:
setNamein interfaceDataClient- Parameters:
strName- The Name
-
getScope
Returns the Scopes set- Specified by:
getScopein interfaceDataClient- Returns:
- The Scope
-
setScope
Sets the Scope- Specified by:
setScopein interfaceDataClient- Parameters:
scope- The Scope
-
getScopes
Build a string that contains the list of scope separated by a plus- Specified by:
getScopesin interfaceDataClient- Returns:
- The scopes
-
getRedirectUri
Returns the RedirectUri- Specified by:
getRedirectUriin interfaceDataClient- Returns:
- The RedirectUri
-
setRedirectUri
Sets the RedirectUri- Specified by:
setRedirectUriin interfaceDataClient- Parameters:
strRedirectUri- The RedirectUri
-
getAcrValuesSet
Returns the set of ACR- Specified by:
getAcrValuesSetin interfaceDataClient- Returns:
- The set of ACR
-
setAcrValuesSet
Set ACR values set- Specified by:
setAcrValuesSetin interfaceDataClient- Parameters:
acrValues- The ACR values set
-
getAcrValues
Returns the set of ACR values- Specified by:
getAcrValuesin interfaceDataClient- Returns:
- The set of ACR values
-
getDataServerUri
- Specified by:
getDataServerUriin interfaceDataClient- Returns:
- the DataServerUri
-
setDataServerUri
- Specified by:
setDataServerUriin interfaceDataClient- Parameters:
strDataServerUri- the DataServerUri to set
-
getTokenMethod
- Specified by:
getTokenMethodin interfaceDataClient- Returns:
- the TokenMethod
-
setTokenMethod
- Specified by:
setTokenMethodin interfaceDataClient- Parameters:
strTokenMethod- the TokenMethod to set
-
getPostLogoutRedirectUri
Returns the PostLogoutRedirectUri- Specified by:
getPostLogoutRedirectUriin interfaceDataClient- Returns:
- The PostLogoutRedirectUri
-
setPostLogoutRedirectUri
Sets the PostLogoutRedirectUri- Specified by:
setPostLogoutRedirectUriin interfaceDataClient- Parameters:
_strPostLogoutRedirectUri- The PostLogoutRedirectUri
-
getData
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:DataClientMethod call if an error appear- Specified by:
handleErrorin interfaceDataClient- Parameters:
request- HttpServletRequest requestresponse- HttpServletResponse responsestrError- String strError
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceDataClient- Returns:
- true if the dataclient is a default data client
-
setDefault
public void setDefault(boolean _bDefault) - Specified by:
setDefaultin interfaceDataClient- Parameters:
_bDefault- true if the dataclient is a default data client
-