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)
GrantedAuthorityFactory
GrantedAuthority
from the given WindowsAccount
.createGrantedAuthority
in interface GrantedAuthorityFactory
windowsAccount
- A flattened Windows Account used in a Windows principal.Copyright © 2010–2015 com.github.dblock. All rights reserved.