Class OIDCWrapper<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.OIDCWrapper<T>
-
- Type Parameters:
T
- the Type of theIAuthenticator
- All Implemented Interfaces:
IAuthenticatorWrapper<T>
,Serializable
public class OIDCWrapper<T extends IAuthenticator<? extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>> extends Object implements IAuthenticatorWrapper<T>
Wrapper for an openid connect authenticator- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_AUTHENTICATION_METHOD
static String
ATTR_CLIENT_ID
static String
ATTR_CLIENT_SECRET
static String
ATTR_CONNECTION_TIMEOUT
static String
ATTR_DISCOVERY_URI
static String
ATTR_EXPIRE_SESSION_TOKEN
static String
ATTR_FURTHER_ATTRIBUTES
static String
ATTR_JWT_ALGO
static String
ATTR_MAX_AUT_AGE
static String
ATTR_MAX_CLOCK_SKEW
static String
ATTR_RESPONSE_MODE
static String
ATTR_RESPONSE_TYPE
static String
ATTR_SCOPE
static String
ATTR_TOKEN_EXPIRATION_ADVANCE
-
Constructor Summary
Constructors Constructor Description OIDCWrapper(T authenticator)
-
Method Summary
-
-
-
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_DISCOVERY_URI
public static final String ATTR_DISCOVERY_URI
- See Also:
- Constant Field Values
-
ATTR_SCOPE
public static final String ATTR_SCOPE
- See Also:
- Constant Field Values
-
ATTR_AUTHENTICATION_METHOD
public static final String ATTR_AUTHENTICATION_METHOD
- See Also:
- Constant Field Values
-
ATTR_JWT_ALGO
public static final String ATTR_JWT_ALGO
- See Also:
- Constant Field Values
-
ATTR_RESPONSE_TYPE
public static final String ATTR_RESPONSE_TYPE
- See Also:
- Constant Field Values
-
ATTR_FURTHER_ATTRIBUTES
public static final String ATTR_FURTHER_ATTRIBUTES
- See Also:
- Constant Field Values
-
ATTR_MAX_AUT_AGE
public static final String ATTR_MAX_AUT_AGE
- See Also:
- Constant Field Values
-
ATTR_RESPONSE_MODE
public static final String ATTR_RESPONSE_MODE
- See Also:
- Constant Field Values
-
ATTR_CONNECTION_TIMEOUT
public static final String ATTR_CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
-
ATTR_MAX_CLOCK_SKEW
public static final String ATTR_MAX_CLOCK_SKEW
- See Also:
- Constant Field Values
-
ATTR_EXPIRE_SESSION_TOKEN
public static final String ATTR_EXPIRE_SESSION_TOKEN
- See Also:
- Constant Field Values
-
ATTR_TOKEN_EXPIRATION_ADVANCE
public static final String ATTR_TOKEN_EXPIRATION_ADVANCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OIDCWrapper
public OIDCWrapper(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()
-
setAuthenticationMethod
public void setAuthenticationMethod(String authenticationMethod)
-
getAuthenticationMethod
public String getAuthenticationMethod()
-
setJwtAlgorithm
public void setJwtAlgorithm(String jwtAlgorithm)
-
getJwtAlgorithm
public String getJwtAlgorithm()
-
setResponseType
public void setResponseType(String responseType)
-
getResponseType
public String getResponseType()
-
setMaxAuthAge
public void setMaxAuthAge(Integer maxAuthAge)
-
getMaxAuthAge
public Integer getMaxAuthAge()
-
setResponseMode
public void setResponseMode(String responseMode)
-
getResponseMode
public String getResponseMode()
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
-
getConnectionTimeout
public int getConnectionTimeout()
-
setMaxClockSkew
public void setMaxClockSkew(int maxClockSkew)
-
getMaxClockSkew
public int getMaxClockSkew()
-
setClientID
public void setClientID(String clientID)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
getDiscoveryURI
public String getDiscoveryURI()
-
setDiscoveryURI
public void setDiscoveryURI(String discoveryURI)
-
getScope
public String getScope()
-
setScope
public void setScope(String scope)
-
getExpireSessionWithToken
public boolean getExpireSessionWithToken()
-
setExpireSessionWithToken
public void setExpireSessionWithToken(boolean expireSession)
-
setTokenExpirationAdvance
public void setTokenExpirationAdvance(int tokenExpiration)
-
getTokenExpirationAdvance
public int getTokenExpirationAdvance()
-
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
-
-