API version:
Show / Hide Table of Contents

Class AuthorizationServerPolicy

Represents a resource in the Okta API.

Inheritance
System.Object
Resource
AuthorizationServerPolicy
Implements
IAuthorizationServerPolicy
IResource
Inherited Members
Resource.GetClient()
Resource.GetData()
Resource.Item[String]
Resource.GetProperty<T>(String)
Resource.SetProperty(String, Object)
Resource.GetStringProperty(String)
Resource.GetBooleanProperty(String)
Resource.GetIntegerProperty(String)
Resource.GetLongProperty(String)
Resource.GetDoubleProperty(String)
Resource.GetDateTimeProperty(String)
Resource.GetArrayProperty<T>(String)
Resource.GetEnumProperty<TEnum>(String)
Resource.GetResourceProperty<T>(String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public sealed class AuthorizationServerPolicy : Resource, IAuthorizationServerPolicy, IResource

Properties

Conditions

Declaration
public IPolicyRuleConditions Conditions { get; set; }
Property Value
Type Description
IPolicyRuleConditions

Created

Declaration
public DateTimeOffset? Created { get; }
Property Value
Type Description
System.Nullable<System.DateTimeOffset>

Description

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

Id

Declaration
public string Id { get; }
Property Value
Type Description
System.String

LastUpdated

Declaration
public DateTimeOffset? LastUpdated { get; }
Property Value
Type Description
System.Nullable<System.DateTimeOffset>

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Priority

Declaration
public int? Priority { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Status

Declaration
public string Status { get; set; }
Property Value
Type Description
System.String

System

Declaration
public bool? System { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Type

Declaration
public PolicyType Type { get; set; }
Property Value
Type Description
PolicyType

Methods

ActivateAsync(String, CancellationToken)

Declaration
public Task ActivateAsync(string authServerId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String authServerId
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task

CreatePolicyRuleAsync(IAuthorizationServerPolicyRule, String, CancellationToken)

Declaration
public Task<IAuthorizationServerPolicyRule> CreatePolicyRuleAsync(IAuthorizationServerPolicyRule policyRule, string authServerId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAuthorizationServerPolicyRule policyRule
System.String authServerId
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<IAuthorizationServerPolicyRule>

DeactivateAsync(String, CancellationToken)

Declaration
public Task DeactivateAsync(string authServerId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String authServerId
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task

DeletePolicyRuleAsync(String, String, CancellationToken)

Declaration
public Task DeletePolicyRuleAsync(string authServerId, string ruleId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String authServerId
System.String ruleId
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task

GetPolicyRuleAsync(String, String, CancellationToken)

Declaration
public Task<IAuthorizationServerPolicyRule> GetPolicyRuleAsync(string authServerId, string ruleId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String authServerId
System.String ruleId
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<IAuthorizationServerPolicyRule>

ListPolicyRules(String)

Declaration
public ICollectionClient<IAuthorizationServerPolicyRule> ListPolicyRules(string authServerId)
Parameters
Type Name Description
System.String authServerId
Returns
Type Description
ICollectionClient<IAuthorizationServerPolicyRule>

Implements

IAuthorizationServerPolicy
IResource
Back to top Copyright © 2021 Okta, Inc.
Generated with DocFx.