public class NameIDMapper extends Object implements LocalIdentityMapper
Principal
, or uses a regular expression to extract it from the string
representation of the principal.Constructor and Description |
---|
NameIDMapper() |
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 |
setRegexp(String regexp) |
public void setRegexp(String regexp) throws PatternSyntaxException
regexp
- The regular expression to use. The first capturing group
within the RE will be the result of the extraction.PatternSyntaxException
- If the pattern is invalid.public String getUsernameForPrincipal(UsernamePrincipal user)
LocalIdentityMapper
getUsernameForPrincipal
in interface LocalIdentityMapper
user
- An identity token.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.