Package com.authlete.common.dto
Class ClaimRule
- java.lang.Object
-
- com.authlete.common.dto.ClaimRule
-
public class ClaimRule extends Object
A rule for processing a claim.- Since:
- 2.39
-
-
Constructor Summary
Constructors Constructor Description ClaimRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClaimName()
Get the name of the claim that this rule applies to.String
getComparisonValue()
Get the value to compare the claim value to, if the operation isEQUALS
.ClaimRuleOperation
getOperation()
Get the operation that this rule will apply to any claims it processes.ClaimRule
setClaimName(String claimName)
Set the name of the claim that this rule applies to.ClaimRule
setComparisonValue(String comparisonValue)
Set the value to compare the claim value to, if the operation isEQUALS
.ClaimRule
setOperation(ClaimRuleOperation operation)
Set the operation that this rule will apply to any claims it processes.
-
-
-
Method Detail
-
getOperation
public ClaimRuleOperation getOperation()
Get the operation that this rule will apply to any claims it processes.- Returns:
- The operation.
- Since:
- 2.39
-
setOperation
public ClaimRule setOperation(ClaimRuleOperation operation)
Set the operation that this rule will apply to any claims it processes.- Parameters:
operation
- The operation.- Returns:
this
object.- Since:
- 2.39
-
getClaimName
public String getClaimName()
Get the name of the claim that this rule applies to.- Returns:
- The claim name.
- Since:
- 2.39
-
setClaimName
public ClaimRule setClaimName(String claimName)
Set the name of the claim that this rule applies to.- Parameters:
claimName
- The claim name.- Returns:
this
object.- Since:
- 2.39
-
getComparisonValue
public String getComparisonValue()
Get the value to compare the claim value to, if the operation isEQUALS
. Values are compared based on their serialization as strings.- Returns:
- The comparison value, as a string.
- Since:
- 2.39
-
setComparisonValue
public ClaimRule setComparisonValue(String comparisonValue)
Set the value to compare the claim value to, if the operation isEQUALS
. Values are compared based on their serialization as strings.- Parameters:
comparisonValue
- The comparison value, as a string.- Returns:
this
object.- Since:
- 2.39
-
-