public class MappingRule extends Object implements Serializable
A rule that maps a claim name, a claim value, and a match type to a role ARN.
Constructor and Description |
---|
MappingRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getClaim()
The claim name that must be present in the token, for example, "isAdmin"
or "paid".
|
String |
getMatchType()
The match condition that specifies how closely the claim value in the IdP
token must match
Value . |
String |
getRoleARN()
The role ARN.
|
String |
getValue()
A brief string that the claim must match, for example, "paid" or "yes".
|
int |
hashCode() |
void |
setClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin"
or "paid".
|
void |
setMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP
token must match
Value . |
void |
setMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP
token must match
Value . |
void |
setRoleARN(String roleARN)
The role ARN.
|
void |
setValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MappingRule |
withClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin"
or "paid".
|
MappingRule |
withMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP
token must match
Value . |
MappingRule |
withMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP
token must match
Value . |
MappingRule |
withRoleARN(String roleARN)
The role ARN.
|
MappingRule |
withValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
|
public String getClaim()
The claim name that must be present in the token, for example, "isAdmin" or "paid".
Constraints:
Length: 1 - 64
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The claim name that must be present in the token, for example, "isAdmin" or "paid".
public void setClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin" or "paid".
Constraints:
Length: 1 - 64
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
claim
- The claim name that must be present in the token, for example, "isAdmin" or "paid".
public MappingRule withClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin" or "paid".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
claim
- The claim name that must be present in the token, for example, "isAdmin" or "paid".
public String getMatchType()
The match condition that specifies how closely the claim value in the IdP
token must match Value
.
Constraints:
Allowed Values: Equals, Contains, StartsWith, NotEqual
The match condition that specifies how closely the claim value in
the IdP token must match Value
.
MappingRuleMatchType
public void setMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP
token must match Value
.
Constraints:
Allowed Values: Equals, Contains, StartsWith, NotEqual
matchType
-
The match condition that specifies how closely the claim value
in the IdP token must match Value
.
MappingRuleMatchType
public MappingRule withMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP
token must match Value
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Equals, Contains, StartsWith, NotEqual
matchType
-
The match condition that specifies how closely the claim value
in the IdP token must match Value
.
MappingRuleMatchType
public void setMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP
token must match Value
.
Constraints:
Allowed Values: Equals, Contains, StartsWith, NotEqual
matchType
-
The match condition that specifies how closely the claim value
in the IdP token must match Value
.
MappingRuleMatchType
public MappingRule withMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP
token must match Value
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Equals, Contains, StartsWith, NotEqual
matchType
-
The match condition that specifies how closely the claim value
in the IdP token must match Value
.
MappingRuleMatchType
public String getValue()
A brief string that the claim must match, for example, "paid" or "yes".
Constraints:
Length: 1 - 128
A brief string that the claim must match, for example, "paid" or "yes".
public void setValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
Constraints:
Length: 1 - 128
value
- A brief string that the claim must match, for example, "paid" or "yes".
public MappingRule withValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
value
- A brief string that the claim must match, for example, "paid" or "yes".
public String getRoleARN()
The role ARN.
Constraints:
Length: 20 - 2048
The role ARN.
public void setRoleARN(String roleARN)
The role ARN.
Constraints:
Length: 20 - 2048
roleARN
- The role ARN.
public MappingRule withRoleARN(String roleARN)
The role ARN.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleARN
- The role ARN.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.