Authorization​Rule Class

Definition

Defines the Azure Service Bus authorization rule that is used to determine whether an operation is permissible or not.

[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.AllowRule))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.SharedAccessAuthorizationRule))]
public abstract class AuthorizationRule
Inheritance
AuthorizationRule
Derived
Attributes
System.Runtime.Serialization.DataContract System.Runtime.Serialization.KnownType System.Runtime.Serialization.KnownType

Fields

Name​Identifier​Claim​Type

The name identifier claim rule.

Role​Claim​Type

The role role claim rule.

Role​Role​Claim​Type

The role role claim rule.

Shared​Access​Key​Claim​Type

The shared access key claim rule.

Short​Name​Identifier​Claim​Type

The short name identifier claim rule.

Short​Upn​Claim​Type

The short UPN claim rule.

Upn​Claim​Type

The UPN claim rule.

Properties

Claim​Type

Gets or sets the claim type.

Claim​Value

Gets or sets the claim value which is either ‘Send’, ‘Listen’, or ‘Manage’.

Created​Time

Gets or sets the date and time when the authorization rule was created.

Issuer​Name

Gets or sets the name identifier of the issuer.

Key​Name

Gets or sets the authorization rule key name.

Modified​Time

Gets or sets the date and time when the authorization rule was modified.

Revision

Gets or sets the modification revision number.

Rights

Gets or sets the list of rights.

Methods

Clone()

Creates a copy of AuthorizationRule.

Equals(​Object)

Determines whether the specified object is equal to the current object.

Get​Hash​Code()

Returns the hash code for this instance.

On​Validate()

Enables derived classes to provide custom handling when validating the authorization rule.

Validate​Rights(​IEnumerable<​Access​Rights>)

Checks the validity of the specified access rights.

Extension Methods

IsDefined(Object)

Defines the Azure Service Bus authorization rule that is used to determine whether an operation is permissible or not.

IsNull(Object)

Defines the Azure Service Bus authorization rule that is used to determine whether an operation is permissible or not.

IsPrimitive(Object)

Defines the Azure Service Bus authorization rule that is used to determine whether an operation is permissible or not.