public class MatchResult extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INDETERMINATE
An integer value indicating the the result is Indeterminate
|
static int |
MATCH
An integer value indicating the the target matches the request
|
static int |
NO_MATCH
An integer value indicating that the target doesn't match the request
|
Constructor and Description |
---|
MatchResult(int result)
Constructor that creates a
MatchResult with no Status |
MatchResult(int result,
Status status)
Constructor that creates a
MatchResult , including Status data |
Modifier and Type | Method and Description |
---|---|
String |
getActionPolicyValue() |
String |
getEnvPolicyValue() |
String |
getPolicyValue() |
String |
getResourcePolicyValue() |
int |
getResult()
Returns the applicable result
|
Status |
getStatus()
Returns the status if there was an error, or null if no error occurred
|
String |
getSubjectPolicyValue() |
void |
setActionPolicyValue(String actionPolicyValue) |
void |
setEnvPolicyValue(String envPolicyValue) |
void |
setPolicyValue(String policyValue) |
void |
setResourcePolicyValue(String resourcePolicyValue) |
void |
setSubjectPolicyValue(String subjectPolicyValue) |
public static final int MATCH
public static final int NO_MATCH
public static final int INDETERMINATE
public MatchResult(int result)
MatchResult
with no Statusresult
- the applicable resultpublic MatchResult(int result, Status status) throws IllegalArgumentException
MatchResult
, including Status dataresult
- the applicable resultstatus
- the error informationIllegalArgumentException
- if the input result isn't a valid valuepublic String getSubjectPolicyValue()
public void setSubjectPolicyValue(String subjectPolicyValue)
public String getResourcePolicyValue()
public void setResourcePolicyValue(String resourcePolicyValue)
public String getActionPolicyValue()
public void setActionPolicyValue(String actionPolicyValue)
public String getEnvPolicyValue()
public void setEnvPolicyValue(String envPolicyValue)
public String getPolicyValue()
public void setPolicyValue(String policyValue)
public int getResult()
public Status getStatus()
Copyright © 2021 WSO2. All rights reserved.