| | 1 | | // Copyright (c) Microsoft. All rights reserved. |
| | 2 | | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| | 3 | |
|
| | 4 | | namespace Microsoft.Azure.ServiceBus.Amqp |
| | 5 | | { |
| | 6 | | using Microsoft.Azure.Amqp; |
| | 7 | | using System; |
| | 8 | |
|
| | 9 | | abstract class ActiveClientLinkObject |
| | 10 | | { |
| | 11 | | readonly string[] requiredClaims; |
| | 12 | |
|
| 0 | 13 | | protected ActiveClientLinkObject(AmqpObject amqpLinkObject, Uri endpointUri, string[] audience, string[] requir |
| | 14 | | { |
| 0 | 15 | | this.LinkObject = amqpLinkObject; |
| 0 | 16 | | this.EndpointUri = endpointUri; |
| 0 | 17 | | this.Audience = audience; |
| 0 | 18 | | this.requiredClaims = requiredClaims; |
| 0 | 19 | | this.AuthorizationValidUntilUtc = authorizationValidUntilUtc; |
| 0 | 20 | | } |
| | 21 | |
|
| 0 | 22 | | public AmqpObject LinkObject { get; } |
| | 23 | |
|
| 0 | 24 | | public string[] Audience { get; } |
| | 25 | |
|
| 0 | 26 | | public Uri EndpointUri { get; } |
| | 27 | |
|
| 0 | 28 | | public string[] RequiredClaims => (string[])this.requiredClaims.Clone(); |
| | 29 | |
|
| 0 | 30 | | public DateTime AuthorizationValidUntilUtc { get; set; } |
| | 31 | |
|
| | 32 | | public abstract AmqpConnection Connection { get; } |
| | 33 | | } |
| | 34 | | } |