public class AuthorizationHelper extends Object
Constructor and Description |
---|
AuthorizationHelper() |
Modifier and Type | Method and Description |
---|---|
Collection<org.springframework.security.core.GrantedAuthority> |
convertRolesToAuthorities(Collection<RoleEntity> roleEntities)
Converts collection of RoleEntities to collection of GrantedAuthorities
|
static String |
getAuthenticatedName()
Gets the name of the logged in user.
|
static String |
getAuthenticatedName(String defaultUsername)
Gets the name of the logged-in user, if any.
|
public Collection<org.springframework.security.core.GrantedAuthority> convertRolesToAuthorities(Collection<RoleEntity> roleEntities)
public static String getAuthenticatedName()
null
if none set.Copyright © 2014. All rights reserved.