Class PrincipalTransformationProperties
java.lang.Object
org.apereo.cas.configuration.model.core.authentication.PrincipalTransformationProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-core-authentication",
automated=true)
public class PrincipalTransformationProperties
extends Object
implements Serializable
This is
PrincipalTransformationProperties
.
Transform the user id prior to executing the authentication sequence.
Each authentication strategy in CAS provides settings to properly transform
the principal. Refer to the relevant settings for the authentication strategy at hand to learn more.- Since:
- 5.0.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Indicate whether the principal identifier should be transformed into upper-case, lower-case, etc. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA regular expression that will be used against the username to match for blocking/forbidden values.Indicate whether the principal identifier should be transformed into upper-case, lower-case, etc.Transform usernames using a Groovy resource.A regular expression that will be used against the provided username for username extractions.Prefix to add to the principal id prior to authentication.Suffix to add to the principal id prior to authentication.setBlockingPattern
(String blockingPattern) A regular expression that will be used against the username to match for blocking/forbidden values.setCaseConversion
(PrincipalTransformationProperties.CaseConversion caseConversion) Indicate whether the principal identifier should be transformed into upper-case, lower-case, etc.Transform usernames using a Groovy resource.setPattern
(String pattern) A regular expression that will be used against the provided username for username extractions.Prefix to add to the principal id prior to authentication.Suffix to add to the principal id prior to authentication.
-
Constructor Details
-
PrincipalTransformationProperties
public PrincipalTransformationProperties()
-
-
Method Details
-
getPrefix
Prefix to add to the principal id prior to authentication. -
getSuffix
Suffix to add to the principal id prior to authentication. -
getPattern
A regular expression that will be used against the provided username for username extractions. On a successful match, the first matched group in the pattern will be used as the extracted username. -
getBlockingPattern
A regular expression that will be used against the username to match for blocking/forbidden values. If a match is found, an exception will be thrown and principal transformation will fail. -
getGroovy
Transform usernames using a Groovy resource. -
getCaseConversion
Indicate whether the principal identifier should be transformed into upper-case, lower-case, etc. -
setPrefix
Prefix to add to the principal id prior to authentication.- Returns:
this
.
-
setSuffix
Suffix to add to the principal id prior to authentication.- Returns:
this
.
-
setPattern
A regular expression that will be used against the provided username for username extractions. On a successful match, the first matched group in the pattern will be used as the extracted username.- Returns:
this
.
-
setBlockingPattern
A regular expression that will be used against the username to match for blocking/forbidden values. If a match is found, an exception will be thrown and principal transformation will fail.- Returns:
this
.
-
setGroovy
Transform usernames using a Groovy resource.- Returns:
this
.
-
setCaseConversion
public PrincipalTransformationProperties setCaseConversion(PrincipalTransformationProperties.CaseConversion caseConversion) Indicate whether the principal identifier should be transformed into upper-case, lower-case, etc.- Returns:
this
.
-