Update mcs/class/System.Core/System/TimeZoneInfo.cs
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel / PeerSecuritySettings.cs
1 // 
2 // PeerSecuritySettings.cs
3 // 
4 // Author: 
5 //     Marcos Cobena (marcoscobena@gmail.com)
6 // 
7 // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
8 // 
9
10 using System;
11
12 namespace System.ServiceModel
13 {
14         public class PeerSecuritySettings
15         {
16                 SecurityMode mode;
17                 
18                 public PeerSecuritySettings ()
19                 {
20                         Transport = new PeerTransportSecuritySettings ();
21                 }
22                 
23                 public SecurityMode Mode {
24                         get { return mode; }
25                         set { mode = value; }
26                 }
27
28                 public PeerTransportSecuritySettings Transport { get; private set; }
29
30                 internal void CopyTo (PeerSecuritySettings other)
31                 {
32                         other.mode = mode;
33                         other.Transport.CredentialType = Transport.CredentialType;
34                 }
35         }
36 }