Class FacebookWrapper<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.FacebookWrapper<T>
-
- Type Parameters:
T
- the type of theIAuthenticator
- All Implemented Interfaces:
IAuthenticatorWrapper<T>
,Serializable
public class FacebookWrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>> extends Object implements IAuthenticatorWrapper<T>
Wrappe for an facebook authenticator- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_CLIENT_ID
static String
ATTR_CLIENT_SECRET
static String
ATTR_REQUESTED_FIELS
static String
ATTR_REQUESTED_SCOPE
-
Constructor Summary
Constructors Constructor Description FacebookWrapper(T authenticator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pac4j.oauth.client.FacebookClient
buildAuthClient(IFormAuthContext authCtx)
Builds the authentication client based on the current data of the wrapperT
getAuthenticator()
Gets theIAuthenticator
-entityString
getClientID()
String
getClientSecret()
String
getFields()
String
getScope()
void
setClientID(String clientID)
void
setClientSecret(String clientSecret)
void
setFields(String fields)
void
setScope(String scopes)
-
-
-
Field Detail
-
ATTR_CLIENT_ID
public static final String ATTR_CLIENT_ID
- See Also:
- Constant Field Values
-
ATTR_CLIENT_SECRET
public static final String ATTR_CLIENT_SECRET
- See Also:
- Constant Field Values
-
ATTR_REQUESTED_FIELS
public static final String ATTR_REQUESTED_FIELS
- See Also:
- Constant Field Values
-
ATTR_REQUESTED_SCOPE
public static final String ATTR_REQUESTED_SCOPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FacebookWrapper
public FacebookWrapper(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
-
getClientID
public String getClientID()
-
setClientID
public void setClientID(String clientID)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
getScope
public String getScope()
-
setScope
public void setScope(String scopes)
-
getFields
public String getFields()
-
setFields
public void setFields(String fields)
-
buildAuthClient
public org.pac4j.oauth.client.FacebookClient 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
-
-