java.lang.Object | |
↳ | org.springframework.security.core.authority.mapping.SimpleAuthorityMapper |
Simple one-to-one GrantedAuthoritiesMapper
which allows for case conversion of the authority name
and the addition of a string prefix (which defaults to ROLE_
).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a mapping of the supplied authorities based on the case-conversion and prefix settings.
| |||||||||||
Whether to convert the authority value to lower case in the mapping.
| |||||||||||
Whether to convert the authority value to upper case in the mapping.
| |||||||||||
Sets a default authority to be assigned to all users
| |||||||||||
Sets the prefix which should be added to the authority name (if it doesn't already exist)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper |
Creates a mapping of the supplied authorities based on the case-conversion and prefix settings. The mapping will be one-to-one unless duplicates are produced during the conversion. If a default authority has been set, this will also be assigned to each mapping.
authorities | the original authorities |
---|
Whether to convert the authority value to lower case in the mapping.
convertToLowerCase | defaults to false
|
---|
Whether to convert the authority value to upper case in the mapping.
convertToUpperCase | defaults to false
|
---|
Sets a default authority to be assigned to all users
authority | the name of the authority to be assigned to all users. |
---|
Sets the prefix which should be added to the authority name (if it doesn't already exist)
prefix | the prefix, typically to satisfy the behaviour of an AccessDecisionVoter .
|
---|