Class GoogleWrapper<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.GoogleWrapper<T>
-
- Type Parameters:
T- the type of theIAuthenticator
- All Implemented Interfaces:
IAuthenticatorWrapper<T>,Serializable
public class GoogleWrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>> extends Object implements IAuthenticatorWrapper<T>
Wrapper for an google authenticator- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_CLIENT_IDstatic StringATTR_CLIENT_SECRETstatic StringATTR_REQUEST_SCOPE
-
Constructor Summary
Constructors Constructor Description GoogleWrapper(T authenticator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pac4j.oauth.client.Google2ClientbuildAuthClient(IFormAuthContext authCtx)Builds the authentication client based on the current data of the wrapperTgetAuthenticator()Gets theIAuthenticator-entityStringgetClientID()StringgetClientSecret()org.pac4j.oauth.client.Google2Client.Google2ScopegetScope()voidsetClientID(String clientID)voidsetClientSecret(String clientSecret)voidsetScope(org.pac4j.oauth.client.Google2Client.Google2Scope scope)
-
-
-
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_REQUEST_SCOPE
public static final String ATTR_REQUEST_SCOPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GoogleWrapper
public GoogleWrapper(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
-
getClientID
public String getClientID()
-
setClientID
public void setClientID(String clientID)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
setScope
public void setScope(org.pac4j.oauth.client.Google2Client.Google2Scope scope)
-
getScope
public org.pac4j.oauth.client.Google2Client.Google2Scope getScope()
-
buildAuthClient
public org.pac4j.oauth.client.Google2Client 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
-
-