public class StringToGrantedAuthority extends Object implements org.apache.commons.collections.Transformer
String
into a GrantedAuthority
. Can handle either a single String
or a collection (or array) of String
instances. Always returns a collection or array if collection or
array was the input.
Transformer input: String
instance, Collection
of String
instances, or array
of String
instances.
Transformer output: GrantedAuthority
instance, Collection
of GrantedAuthority
instances, or array of GrantedAuthority
instances.
Constructor and Description |
---|
StringToGrantedAuthority() |
Modifier and Type | Method and Description |
---|---|
void |
setConvertToUpperCase(boolean convertToUpperCase) |
void |
setRolePrefix(String rolePrefix) |
Object |
transform(Object obj) |
protected Object |
transformItem(Object obj) |
Copyright © 2018 Hitachi Vantara. All rights reserved.