public class CompositeIDMapper extends Object implements LocalIdentityMapper, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
CompositeIDMapper() |
Modifier and Type | Method and Description |
---|---|
String |
getUsernameForPrincipal(UsernamePrincipal user)
Given a user's identity, get the local identity to use for executing
their workflows.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setIdentityMappers(List<LocalIdentityMapper> mappers) |
public void setIdentityMappers(List<LocalIdentityMapper> mappers)
mappers
- The list of mappers to delegate to. Order is significant.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public String getUsernameForPrincipal(UsernamePrincipal user)
LocalIdentityMapper
getUsernameForPrincipal
in interface LocalIdentityMapper
user
- An identity token.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.