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 String
ATTR_AUTHENTICATION_URL
static String
ATTR_CUSTOM_USER_MAPPING_ATTRIBUTES
static String
ATTR_KEY
static String
ATTR_PROFILE_ID
static String
ATTR_PROFILE_REQUEST_TYPE
static String
ATTR_PROFILE_URL
static String
ATTR_SCOPE
static String
ATTR_SECRET
static String
ATTR_TOKEN_URL
static String
ATTR_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.Client
buildAuthClient(IFormAuthContext authCtx)
Builds the authentication client based on the current data of the wrapperString
getAuthenticationUrl()
T
getAuthenticator()
Gets theIAuthenticator
-entityMap<String,String>
getCustomUserMappingAttributes()
String
getKey()
String
getProfileId()
String
getProfileRequestType()
String
getProfileUrl()
String
getScope()
String
getSecret()
String
getTokenUrl()
Map<String,String>
getUserMappingAttributes()
void
setAuthenticationUrl(String url)
void
setCustomUserMappingAttributes(Map<String,String> attrs)
void
setKey(String key)
void
setProfileId(String profileIdName)
void
setProfileRequestType(String type)
void
setProfileUrl(String url)
void
setScope(String scope)
void
setSecret(String key)
void
setTokenUrl(String url)
void
setUserMappingAttributes(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:IAuthenticatorWrapper
Gets theIAuthenticator
-entity- Specified by:
getAuthenticator
in 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:IAuthenticatorWrapper
Builds the authentication client based on the current data of the wrapper- Specified by:
buildAuthClient
in interfaceIAuthenticatorWrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>>
- Parameters:
authCtx
-IFormAuthContext
to build the client for- Returns:
- the
Client
-
-