RoleManagementPolicyAuthenticationContextRule Class

public final class RoleManagementPolicyAuthenticationContextRule
extends RoleManagementPolicyRule

The role management policy authentication context rule.

Constructor Summary

Constructor Description
RoleManagementPolicyAuthenticationContextRule()

Creates an instance of RoleManagementPolicyAuthenticationContextRule class.

Method Summary

Modifier and Type Method and Description
String claimValue()

Get the claimValue property: The claim value.

static RoleManagementPolicyAuthenticationContextRule fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyAuthenticationContextRule from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: The value indicating if rule is enabled.

RoleManagementPolicyRuleType ruleType()

Get the ruleType property: The type of rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleManagementPolicyAuthenticationContextRule withClaimValue(String claimValue)

Set the claimValue property: The claim value.

RoleManagementPolicyAuthenticationContextRule withId(String id)

Set the id property: The id of the rule.

RoleManagementPolicyAuthenticationContextRule withIsEnabled(Boolean isEnabled)

Set the isEnabled property: The value indicating if rule is enabled.

RoleManagementPolicyAuthenticationContextRule withTarget(RoleManagementPolicyRuleTarget target)

Set the target property: The target of the current rule.

Methods inherited from RoleManagementPolicyRule

Methods inherited from java.lang.Object

Constructor Details

RoleManagementPolicyAuthenticationContextRule

public RoleManagementPolicyAuthenticationContextRule()

Creates an instance of RoleManagementPolicyAuthenticationContextRule class.

Method Details

claimValue

public String claimValue()

Get the claimValue property: The claim value.

Returns:

the claimValue value.

fromJson

public static RoleManagementPolicyAuthenticationContextRule fromJson(JsonReader jsonReader)

Reads an instance of RoleManagementPolicyAuthenticationContextRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleManagementPolicyAuthenticationContextRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RoleManagementPolicyAuthenticationContextRule.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: The value indicating if rule is enabled.

Returns:

the isEnabled value.

ruleType

public RoleManagementPolicyRuleType ruleType()

Get the ruleType property: The type of rule.

Overrides:

RoleManagementPolicyAuthenticationContextRule.ruleType()

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RoleManagementPolicyAuthenticationContextRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

RoleManagementPolicyAuthenticationContextRule.validate()

withClaimValue

public RoleManagementPolicyAuthenticationContextRule withClaimValue(String claimValue)

Set the claimValue property: The claim value.

Parameters:

claimValue - the claimValue value to set.

Returns:

the RoleManagementPolicyAuthenticationContextRule object itself.

withId

public RoleManagementPolicyAuthenticationContextRule withId(String id)

Set the id property: The id of the rule.

Overrides:

RoleManagementPolicyAuthenticationContextRule.withId(String id)

Parameters:

id

withIsEnabled

public RoleManagementPolicyAuthenticationContextRule withIsEnabled(Boolean isEnabled)

Set the isEnabled property: The value indicating if rule is enabled.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the RoleManagementPolicyAuthenticationContextRule object itself.

withTarget

public RoleManagementPolicyAuthenticationContextRule withTarget(RoleManagementPolicyRuleTarget target)

Set the target property: The target of the current rule.

Overrides:

RoleManagementPolicyAuthenticationContextRule.withTarget(RoleManagementPolicyRuleTarget target)

Parameters:

target

Applies to