java.lang.Object
waffle.spring.FqnGrantedAuthorityFactory
- All Implemented Interfaces:
GrantedAuthorityFactory
A
GrantedAuthorityFactory that uses the WindowsAccount's fqn as the basis of the
GrantedAuthority string, and (optionally) applies two transformations:
- prepending a prefix, and
- converting to uppercase
-
Constructor Summary
ConstructorsConstructorDescriptionFqnGrantedAuthorityFactory(String newPrefix, boolean newConvertToUpperCase) Instantiates a new fqn granted authority factory. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.GrantedAuthoritycreateGrantedAuthority(waffle.windows.auth.WindowsAccount windowsAccount) Creates aGrantedAuthorityfrom the givenWindowsAccount.
-
Constructor Details
-
FqnGrantedAuthorityFactory
Instantiates a new fqn granted authority factory.- Parameters:
newPrefix- the new prefixnewConvertToUpperCase- the new convert to upper case
-
-
Method Details
-
createGrantedAuthority
public org.springframework.security.core.GrantedAuthority createGrantedAuthority(waffle.windows.auth.WindowsAccount windowsAccount) Description copied from interface:GrantedAuthorityFactoryCreates aGrantedAuthorityfrom the givenWindowsAccount.- Specified by:
createGrantedAuthorityin interfaceGrantedAuthorityFactory- Parameters:
windowsAccount- the windows account- Returns:
- the granted authority
-