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 java.lang.Object implements DataClient
DataClient
-
-
Constructor Summary
Constructors Constructor Description AbstractDataClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAcrValues()Returns the set of ACR valuesjava.util.SetgetAcrValuesSet()Returns the set of ACRjava.lang.StringgetData(Token token)Send an authenticated request with the access token to retreive datajava.lang.StringgetDataServerUri()java.lang.StringgetName()Returns the Namejava.lang.StringgetPostLogoutRedirectUri()Returns the PostLogoutRedirectUrijava.lang.StringgetRedirectUri()Returns the RedirectUrijava.util.SetgetScope()Returns the Scopes setjava.lang.StringgetScopes()Build a string that contains the list of scope separated by a plusjava.lang.StringgetTokenMethod()voidhandleError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String strError)Method call if an error appearbooleanisDefault()voidsetAcrValuesSet(java.util.Set acrValues)Set ACR values setvoidsetDataServerUri(java.lang.String strDataServerUri)voidsetDefault(boolean _bDefault)voidsetName(java.lang.String strName)Sets the NamevoidsetPostLogoutRedirectUri(java.lang.String _strPostLogoutRedirectUri)Sets the PostLogoutRedirectUrivoidsetRedirectUri(java.lang.String strRedirectUri)Sets the RedirectUrivoidsetScope(java.util.Set scope)Sets the ScopevoidsetTokenMethod(java.lang.String strTokenMethod)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.oauth2.dataclient.DataClient
handleToken
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the Name- Specified by:
getNamein interfaceDataClient- Returns:
- The Name
-
setName
public void setName(java.lang.String strName)
Sets the Name- Specified by:
setNamein interfaceDataClient- Parameters:
strName- The Name
-
getScope
public java.util.Set getScope()
Returns the Scopes set- Specified by:
getScopein interfaceDataClient- Returns:
- The Scope
-
setScope
public void setScope(java.util.Set scope)
Sets the Scope- Specified by:
setScopein interfaceDataClient- 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:
getScopesin interfaceDataClient- Returns:
- The scopes
-
getRedirectUri
public java.lang.String getRedirectUri()
Returns the RedirectUri- Specified by:
getRedirectUriin interfaceDataClient- Returns:
- The RedirectUri
-
setRedirectUri
public void setRedirectUri(java.lang.String strRedirectUri)
Sets the RedirectUri- Specified by:
setRedirectUriin interfaceDataClient- Parameters:
strRedirectUri- The RedirectUri
-
getAcrValuesSet
public java.util.Set getAcrValuesSet()
Returns the set of ACR- Specified by:
getAcrValuesSetin interfaceDataClient- Returns:
- The set of ACR
-
setAcrValuesSet
public void setAcrValuesSet(java.util.Set acrValues)
Set ACR values set- Specified by:
setAcrValuesSetin interfaceDataClient- Parameters:
acrValues- The ACR values set
-
getAcrValues
public java.lang.String getAcrValues()
Returns the set of ACR values- Specified by:
getAcrValuesin interfaceDataClient- Returns:
- The set of ACR values
-
getDataServerUri
public java.lang.String getDataServerUri()
- Specified by:
getDataServerUriin interfaceDataClient- Returns:
- the DataServerUri
-
setDataServerUri
public void setDataServerUri(java.lang.String strDataServerUri)
- Specified by:
setDataServerUriin interfaceDataClient- Parameters:
strDataServerUri- the DataServerUri to set
-
getTokenMethod
public java.lang.String getTokenMethod()
- Specified by:
getTokenMethodin interfaceDataClient- Returns:
- the TokenMethod
-
setTokenMethod
public void setTokenMethod(java.lang.String strTokenMethod)
- Specified by:
setTokenMethodin interfaceDataClient- Parameters:
strTokenMethod- the TokenMethod to set
-
getPostLogoutRedirectUri
public java.lang.String getPostLogoutRedirectUri()
Returns the PostLogoutRedirectUri- Specified by:
getPostLogoutRedirectUriin interfaceDataClient- Returns:
- The PostLogoutRedirectUri
-
setPostLogoutRedirectUri
public void setPostLogoutRedirectUri(java.lang.String _strPostLogoutRedirectUri)
Sets the PostLogoutRedirectUri- Specified by:
setPostLogoutRedirectUriin interfaceDataClient- 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: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
-
-