public static final class RoleMappingRule.Builder
extends java.lang.Object
RoleMappingRule
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RoleMappingRule |
build()
Builds the configured instance.
|
RoleMappingRule.Builder |
claim(java.lang.String claim)
Sets the value of
RoleMappingRule.getClaim() |
RoleMappingRule.Builder |
claimValue(java.lang.String claimValue)
Sets the value of
RoleMappingRule.getClaimValue() |
RoleMappingRule.Builder |
mappedRole(IRole mappedRole)
Sets the value of
RoleMappingRule.getMappedRole() |
RoleMappingRule.Builder |
matchType(RoleMappingMatchType matchType)
Sets the value of
RoleMappingRule.getMatchType() |
public RoleMappingRule.Builder claim(java.lang.String claim)
RoleMappingRule.getClaim()
claim
- The key sent in the token by the federated identity provider. This parameter is required.this
public RoleMappingRule.Builder claimValue(java.lang.String claimValue)
RoleMappingRule.getClaimValue()
claimValue
- The value of the claim that must be matched. This parameter is required.this
public RoleMappingRule.Builder mappedRole(IRole mappedRole)
RoleMappingRule.getMappedRole()
mappedRole
- The Role to be assumed when Claim Value is matched. This parameter is required.this
public RoleMappingRule.Builder matchType(RoleMappingMatchType matchType)
RoleMappingRule.getMatchType()
matchType
- How to match with the Claim value.this
public RoleMappingRule build()
RoleMappingRule
java.lang.NullPointerException
- if any required attribute was not provided