Class SimpleUsernameAttributeProvider
java.lang.Object
org.apereo.cas.authentication.attribute.SimpleUsernameAttributeProvider
- All Implemented Interfaces:
org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider
public class SimpleUsernameAttributeProvider
extends Object
implements org.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider
Provides the username attribute based on a pre-configured string. Determines the username from a query Map based
on the configured attribute,
StringUtils.trimToNull(String), and if the username value does not contain a
wildcard.- Since:
- 7.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUsernameFromQuery(Map<String, List<Object>> query) voidsetUsernameAttribute(String usernameAttribute)
-
Constructor Details
-
SimpleUsernameAttributeProvider
-
SimpleUsernameAttributeProvider
public SimpleUsernameAttributeProvider()
-
-
Method Details
-
getUsernameFromQuery
- Specified by:
getUsernameFromQueryin interfaceorg.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider
-
setUsernameAttribute
-
getUsernameAttribute
- Specified by:
getUsernameAttributein interfaceorg.apereo.cas.authentication.principal.attribute.UsernameAttributeProvider
-