Class OAuth20Wrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>>
- java.lang.Object
-
- de.xima.fc.web.common.auth.wrapper.OAuth20Wrapper<T>
-
- All Implemented Interfaces:
IAuthenticatorWrapper<T>,Serializable
public class OAuth20Wrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>> extends Object implements IAuthenticatorWrapper<T>
- Author:
- rth
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_AUTHENTICATION_URLstatic StringATTR_CUSTOM_USER_MAPPING_ATTRIBUTESstatic StringATTR_KEYstatic StringATTR_PROFILE_IDstatic StringATTR_PROFILE_REQUEST_TYPEstatic StringATTR_PROFILE_URLstatic StringATTR_SCOPEstatic StringATTR_SECRETstatic StringATTR_TOKEN_URLstatic StringATTR_USER_MAPPING_ATTRIBUTES
-
Constructor Summary
Constructors Constructor Description OAuth20Wrapper(T authenticator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pac4j.core.client.ClientbuildAuthClient(IFormAuthContext authCtx)Builds the authentication client based on the current data of the wrapperStringgetAuthenticationUrl()TgetAuthenticator()Gets theIAuthenticator-entityMap<String,String>getCustomUserMappingAttributes()StringgetKey()StringgetProfileId()StringgetProfileRequestType()StringgetProfileUrl()StringgetScope()StringgetSecret()StringgetTokenUrl()Map<String,String>getUserMappingAttributes()voidsetAuthenticationUrl(String url)voidsetCustomUserMappingAttributes(Map<String,String> attrs)voidsetKey(String key)voidsetProfileId(String profileIdName)voidsetProfileRequestType(String type)voidsetProfileUrl(String url)voidsetScope(String scope)voidsetSecret(String key)voidsetTokenUrl(String url)voidsetUserMappingAttributes(Map<String,String> userMappingAttributes)
-
-
-
Field Detail
-
ATTR_KEY
public static final String ATTR_KEY
- See Also:
- Constant Field Values
-
ATTR_SECRET
public static final String ATTR_SECRET
- See Also:
- Constant Field Values
-
ATTR_SCOPE
public static final String ATTR_SCOPE
- See Also:
- Constant Field Values
-
ATTR_PROFILE_REQUEST_TYPE
public static final String ATTR_PROFILE_REQUEST_TYPE
- See Also:
- Constant Field Values
-
ATTR_AUTHENTICATION_URL
public static final String ATTR_AUTHENTICATION_URL
- See Also:
- Constant Field Values
-
ATTR_TOKEN_URL
public static final String ATTR_TOKEN_URL
- See Also:
- Constant Field Values
-
ATTR_PROFILE_URL
public static final String ATTR_PROFILE_URL
- See Also:
- Constant Field Values
-
ATTR_PROFILE_ID
public static final String ATTR_PROFILE_ID
- See Also:
- Constant Field Values
-
ATTR_USER_MAPPING_ATTRIBUTES
public static final String ATTR_USER_MAPPING_ATTRIBUTES
- See Also:
- Constant Field Values
-
ATTR_CUSTOM_USER_MAPPING_ATTRIBUTES
public static final String ATTR_CUSTOM_USER_MAPPING_ATTRIBUTES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OAuth20Wrapper
public OAuth20Wrapper(T authenticator)
-
-
Method Detail
-
getAuthenticator
public T getAuthenticator()
Description copied from interface:IAuthenticatorWrapperGets theIAuthenticator-entity- Specified by:
getAuthenticatorin interfaceIAuthenticatorWrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>>- Returns:
- the
IAuthenticator
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getSecret
public String getSecret()
-
setSecret
public void setSecret(String key)
-
getScope
public String getScope()
-
setScope
public void setScope(String scope)
-
getAuthenticationUrl
public String getAuthenticationUrl()
-
setAuthenticationUrl
public void setAuthenticationUrl(String url)
-
getTokenUrl
public String getTokenUrl()
-
setTokenUrl
public void setTokenUrl(String url)
-
getProfileUrl
public String getProfileUrl()
-
setProfileUrl
public void setProfileUrl(String url)
-
getProfileRequestType
public String getProfileRequestType()
-
setProfileRequestType
public void setProfileRequestType(String type)
-
getProfileId
public String getProfileId()
-
setProfileId
public void setProfileId(String profileIdName)
-
setUserMappingAttributes
public void setUserMappingAttributes(Map<String,String> userMappingAttributes)
-
setCustomUserMappingAttributes
public void setCustomUserMappingAttributes(Map<String,String> attrs)
-
buildAuthClient
public org.pac4j.core.client.Client buildAuthClient(IFormAuthContext authCtx)
Description copied from interface:IAuthenticatorWrapperBuilds the authentication client based on the current data of the wrapper- Specified by:
buildAuthClientin interfaceIAuthenticatorWrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>>- Parameters:
authCtx-IFormAuthContextto build the client for- Returns:
- the
Client
-
-