public class ConstantIDMapper extends Object implements LocalIdentityMapper
Constructor and Description |
---|
ConstantIDMapper() |
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 |
setConstantId(String id)
Sets what local user ID all users should be mapped to.
|
public void setConstantId(String id)
id
- The local user ID.public String getUsernameForPrincipal(UsernamePrincipal user)
LocalIdentityMapper
getUsernameForPrincipal
in interface LocalIdentityMapper
user
- An identity token.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.