@Component public class AccountToUserDetailsConverter extends Object implements org.springframework.core.convert.converter.Converter<com.stormpath.sdk.account.Account,net.smartcosmos.userdetails.domain.UserDetails>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_AUTHORITIES |
static String |
KEY_URN |
| Constructor and Description |
|---|
AccountToUserDetailsConverter() |
| Modifier and Type | Method and Description |
|---|---|
net.smartcosmos.userdetails.domain.UserDetails |
convert(com.stormpath.sdk.account.Account account) |
protected Set<String> |
getAuthorities(com.stormpath.sdk.account.Account account) |
protected Collection<String> |
getAuthoritiesFromCustomData(com.stormpath.sdk.directory.CustomData customData) |
protected String |
getTenantUrn(com.stormpath.sdk.account.Account account) |
protected String |
getUrnFromCustomData(com.stormpath.sdk.directory.CustomData customData) |
protected String |
getUserUrn(com.stormpath.sdk.account.Account account) |
public static final String KEY_AUTHORITIES
public static final String KEY_URN
public net.smartcosmos.userdetails.domain.UserDetails convert(com.stormpath.sdk.account.Account account)
convert in interface org.springframework.core.convert.converter.Converter<com.stormpath.sdk.account.Account,net.smartcosmos.userdetails.domain.UserDetails>protected String getUserUrn(com.stormpath.sdk.account.Account account)
protected String getTenantUrn(com.stormpath.sdk.account.Account account)
protected String getUrnFromCustomData(com.stormpath.sdk.directory.CustomData customData)
protected Collection<String> getAuthoritiesFromCustomData(com.stormpath.sdk.directory.CustomData customData)
Copyright © 2015–2016 Smartrac Technology Fletcher, Inc.. All rights reserved.