Class Pac4jDelegatedAuthenticationCoreProperties
- All Implemented Interfaces:
Serializable
- Since:
- 6.4.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionControl the expiration policy of the cache that holds onto the results.long
Control the size of the delegated identity provider cache that holds identity providers.Discovery selection settings.Path to a groovy script to customize the authentication request and the configuration responsible for it before the request is handed off to the identity provider.Path to a groovy script to post-process identity providers before they are presented to the user.Path to a groovy script to determine the auto-redirection strategy to identity providers.getName()
The name of the authentication handler in CAS used for delegation.getOrder()
Order of the authentication handler in the chain.The attribute to use as the principal identifier built during and upon a successful authentication attempt.Control settings for session replication.boolean
Whether initialization of delegated identity providers should be done eagerly typically during startup.boolean
When constructing the final user profile from the delegated provider, determines if the provider id should be combined with the principal id.setCacheDuration
(String cacheDuration) Control the expiration policy of the cache that holds onto the results.setCacheSize
(long cacheSize) Control the size of the delegated identity provider cache that holds identity providers.setDiscoverySelection
(Pac4jDelegatedAuthenticationDiscoverySelectionProperties discoverySelection) Discovery selection settings.setGroovyAuthenticationRequestCustomizer
(SpringResourceProperties groovyAuthenticationRequestCustomizer) Path to a groovy script to customize the authentication request and the configuration responsible for it before the request is handed off to the identity provider.setGroovyProviderPostProcessor
(SpringResourceProperties groovyProviderPostProcessor) Path to a groovy script to post-process identity providers before they are presented to the user.setGroovyRedirectionStrategy
(SpringResourceProperties groovyRedirectionStrategy) Path to a groovy script to determine the auto-redirection strategy to identity providers.setLazyInit
(boolean lazyInit) Whether initialization of delegated identity providers should be done eagerly typically during startup.The name of the authentication handler in CAS used for delegation.Order of the authentication handler in the chain.setPrincipalIdAttribute
(String principalIdAttribute) The attribute to use as the principal identifier built during and upon a successful authentication attempt.setSessionReplication
(SessionReplicationProperties sessionReplication) Control settings for session replication.setTypedIdUsed
(boolean typedIdUsed) When constructing the final user profile from the delegated provider, determines if the provider id should be combined with the principal id.
-
Constructor Details
-
Pac4jDelegatedAuthenticationCoreProperties
public Pac4jDelegatedAuthenticationCoreProperties()
-
-
Method Details
-
isTypedIdUsed
public boolean isTypedIdUsed()When constructing the final user profile from the delegated provider, determines if the provider id should be combined with the principal id. -
getPrincipalIdAttribute
The attribute to use as the principal identifier built during and upon a successful authentication attempt. -
isLazyInit
public boolean isLazyInit()Whether initialization of delegated identity providers should be done eagerly typically during startup. -
getName
The name of the authentication handler in CAS used for delegation. -
getOrder
Order of the authentication handler in the chain. -
getCacheDuration
Control the expiration policy of the cache that holds onto the results. -
getCacheSize
public long getCacheSize()Control the size of the delegated identity provider cache that holds identity providers.This setting specifies the maximum number of entries the cache may contain. Note that the cache may evict an entry before this limit is exceeded or temporarily exceed the threshold while evicting. As the cache size grows close to the maximum, the cache evicts entries that are less likely to be used again. For example, the cache may evict an entry because it hasn't been used recently or very often.
-
getSessionReplication
Control settings for session replication. -
getGroovyRedirectionStrategy
Path to a groovy script to determine the auto-redirection strategy to identity providers. -
getGroovyProviderPostProcessor
Path to a groovy script to post-process identity providers before they are presented to the user. -
getGroovyAuthenticationRequestCustomizer
Path to a groovy script to customize the authentication request and the configuration responsible for it before the request is handed off to the identity provider. -
getDiscoverySelection
Discovery selection settings. -
setTypedIdUsed
When constructing the final user profile from the delegated provider, determines if the provider id should be combined with the principal id.- Returns:
this
.
-
setPrincipalIdAttribute
public Pac4jDelegatedAuthenticationCoreProperties setPrincipalIdAttribute(String principalIdAttribute) The attribute to use as the principal identifier built during and upon a successful authentication attempt.- Returns:
this
.
-
setLazyInit
Whether initialization of delegated identity providers should be done eagerly typically during startup.- Returns:
this
.
-
setName
The name of the authentication handler in CAS used for delegation.- Returns:
this
.
-
setOrder
Order of the authentication handler in the chain.- Returns:
this
.
-
setCacheDuration
Control the expiration policy of the cache that holds onto the results.- Returns:
this
.
-
setCacheSize
Control the size of the delegated identity provider cache that holds identity providers.This setting specifies the maximum number of entries the cache may contain. Note that the cache may evict an entry before this limit is exceeded or temporarily exceed the threshold while evicting. As the cache size grows close to the maximum, the cache evicts entries that are less likely to be used again. For example, the cache may evict an entry because it hasn't been used recently or very often.
- Returns:
this
.
-
setSessionReplication
public Pac4jDelegatedAuthenticationCoreProperties setSessionReplication(SessionReplicationProperties sessionReplication) Control settings for session replication.- Returns:
this
.
-
setGroovyRedirectionStrategy
public Pac4jDelegatedAuthenticationCoreProperties setGroovyRedirectionStrategy(SpringResourceProperties groovyRedirectionStrategy) Path to a groovy script to determine the auto-redirection strategy to identity providers.- Returns:
this
.
-
setGroovyProviderPostProcessor
public Pac4jDelegatedAuthenticationCoreProperties setGroovyProviderPostProcessor(SpringResourceProperties groovyProviderPostProcessor) Path to a groovy script to post-process identity providers before they are presented to the user.- Returns:
this
.
-
setGroovyAuthenticationRequestCustomizer
public Pac4jDelegatedAuthenticationCoreProperties setGroovyAuthenticationRequestCustomizer(SpringResourceProperties groovyAuthenticationRequestCustomizer) Path to a groovy script to customize the authentication request and the configuration responsible for it before the request is handed off to the identity provider.- Returns:
this
.
-
setDiscoverySelection
public Pac4jDelegatedAuthenticationCoreProperties setDiscoverySelection(Pac4jDelegatedAuthenticationDiscoverySelectionProperties discoverySelection) Discovery selection settings.- Returns:
this
.
-