public class FqnGrantedAuthorityFactory extends Object implements GrantedAuthorityFactory
GrantedAuthorityFactory that uses the WindowsAccount's fqn as the basis of the
GrantedAuthority string, and (optionally) applies two transformations:
| Constructor and Description |
|---|
FqnGrantedAuthorityFactory(String newPrefix,
boolean newConvertToUpperCase)
Instantiates a new fqn granted authority factory.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.GrantedAuthority |
createGrantedAuthority(WindowsAccount windowsAccount)
Creates a
GrantedAuthority from the given WindowsAccount. |
public FqnGrantedAuthorityFactory(String newPrefix, boolean newConvertToUpperCase)
newPrefix - the new prefixnewConvertToUpperCase - the new convert to upper casepublic org.springframework.security.core.GrantedAuthority createGrantedAuthority(WindowsAccount windowsAccount)
GrantedAuthorityFactoryGrantedAuthority from the given WindowsAccount.createGrantedAuthority in interface GrantedAuthorityFactorywindowsAccount - the windows accountCopyright © 2010–2020 com.github.waffle. All rights reserved.