| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | |
| | | 6 | | namespace CoreWCF.Security.Tokens |
| | | 7 | | { |
| | | 8 | | public sealed class RecipientServiceModelSecurityTokenRequirement : ServiceModelSecurityTokenRequirement |
| | | 9 | | { |
| | | 10 | | public RecipientServiceModelSecurityTokenRequirement() |
| | 99 | 11 | | : base() |
| | | 12 | | { |
| | 99 | 13 | | Properties.Add(IsInitiatorProperty, (object)false); |
| | 99 | 14 | | } |
| | | 15 | | |
| | | 16 | | public Uri ListenUri |
| | | 17 | | { |
| | | 18 | | get |
| | | 19 | | { |
| | 23 | 20 | | return GetPropertyOrDefault<Uri>(ListenUriProperty, null); |
| | | 21 | | } |
| | | 22 | | set |
| | | 23 | | { |
| | 99 | 24 | | Properties[ListenUriProperty] = value; |
| | 99 | 25 | | } |
| | | 26 | | } |
| | | 27 | | |
| | | 28 | | //public AuditLogLocation AuditLogLocation |
| | | 29 | | //{ |
| | | 30 | | // get |
| | | 31 | | // { |
| | | 32 | | // return GetPropertyOrDefault<AuditLogLocation>(AuditLogLocationProperty, ServiceSecurityAuditBehavior.d |
| | | 33 | | // } |
| | | 34 | | // set |
| | | 35 | | // { |
| | | 36 | | // this.Properties[AuditLogLocationProperty] = value; |
| | | 37 | | // } |
| | | 38 | | //} |
| | | 39 | | |
| | | 40 | | //public bool SuppressAuditFailure |
| | | 41 | | //{ |
| | | 42 | | // get |
| | | 43 | | // { |
| | | 44 | | // return GetPropertyOrDefault<bool>(SuppressAuditFailureProperty, ServiceSecurityAuditBehavior.defaultSu |
| | | 45 | | // } |
| | | 46 | | // set |
| | | 47 | | // { |
| | | 48 | | // this.Properties[SuppressAuditFailureProperty] = value; |
| | | 49 | | // } |
| | | 50 | | //} |
| | | 51 | | |
| | | 52 | | //public AuditLevel MessageAuthenticationAuditLevel |
| | | 53 | | //{ |
| | | 54 | | // get |
| | | 55 | | // { |
| | | 56 | | // return GetPropertyOrDefault<AuditLevel>(MessageAuthenticationAuditLevelProperty, ServiceSecurityAuditB |
| | | 57 | | // } |
| | | 58 | | // set |
| | | 59 | | // { |
| | | 60 | | // this.Properties[MessageAuthenticationAuditLevelProperty] = value; |
| | | 61 | | // } |
| | | 62 | | //} |
| | | 63 | | |
| | | 64 | | public override string ToString() |
| | | 65 | | { |
| | 0 | 66 | | return InternalToString(); |
| | | 67 | | } |
| | | 68 | | } |
| | | 69 | | } |