public interface SmartCosmosServiceUser
| Modifier and Type | Field and Description |
|---|---|
static Collection<org.springframework.security.core.GrantedAuthority> |
DEFAULT_SERVICE_USER_AUTHORITIES
The default authorities of a service user.
|
static String |
SERVICE_USER_ROLE
Name of the service user's role, used for the default authority
"hasRole('" + SERVICE_USER_ROLE + "')". |
| Modifier and Type | Method and Description |
|---|---|
static Collection<org.springframework.security.core.GrantedAuthority> |
defaultServiceUserAuthorities() |
static net.smartcosmos.security.user.SmartCosmosUser |
getServiceUser(String username,
String password,
Collection<org.springframework.security.core.GrantedAuthority> authorities)
Creates a new Service User.
|
static final String SERVICE_USER_ROLE
"hasRole('" + SERVICE_USER_ROLE + "')".static final Collection<org.springframework.security.core.GrantedAuthority> DEFAULT_SERVICE_USER_AUTHORITIES
static Collection<org.springframework.security.core.GrantedAuthority> defaultServiceUserAuthorities()
static net.smartcosmos.security.user.SmartCosmosUser getServiceUser(String username, String password, Collection<org.springframework.security.core.GrantedAuthority> authorities)
username - the username, used to verify HTTP Basic Authpassword - the password, used to verify HTTP Basic Authauthorities - the authorities, will override the default authoritiesSmartCosmosUser instanceCopyright © 2015–2016 Smartrac Technology Fletcher, Inc.. All rights reserved.