AuthorizationRule AuthorizationRule AuthorizationRule 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
type AuthorizationRule = class
Public MustInherit Class AuthorizationRule
Inheritance
AuthorizationRuleAuthorizationRuleAuthorizationRule
Derived
Attributes

Fields

NameIdentifierClaimType NameIdentifierClaimType NameIdentifierClaimType

The name identifier claim rule.

RoleClaimType RoleClaimType RoleClaimType

The role role claim rule.

RoleRoleClaimType RoleRoleClaimType RoleRoleClaimType

The role role claim rule.

SharedAccessKeyClaimType SharedAccessKeyClaimType SharedAccessKeyClaimType

The shared access key claim rule.

ShortNameIdentifierClaimType ShortNameIdentifierClaimType ShortNameIdentifierClaimType

The short name identifier claim rule.

ShortUpnClaimType ShortUpnClaimType ShortUpnClaimType

The short UPN claim rule.

UpnClaimType UpnClaimType UpnClaimType

The UPN claim rule.

Properties

ClaimType ClaimType ClaimType

Gets or sets the claim type.

ClaimValue ClaimValue ClaimValue

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

CreatedTime CreatedTime CreatedTime

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

IssuerName IssuerName IssuerName

Gets or sets the name identifier of the issuer.

KeyName KeyName KeyName

Gets or sets the authorization rule key name.

ModifiedTime ModifiedTime ModifiedTime

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

Revision Revision Revision

Gets or sets the modification revision number.

Rights Rights Rights

Gets or sets the list of rights.

Methods

Clone() Clone() Clone()

Creates a copy of AuthorizationRule.

Equals(Object) Equals(Object) Equals(Object)

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

GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this instance.

OnValidate() OnValidate() OnValidate()

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

ValidateRights(IEnumerable<AccessRights>) ValidateRights(IEnumerable<AccessRights>) ValidateRights(IEnumerable<AccessRights>)

Checks the validity of the specified access rights.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to