예제 #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="credential">the client credential contains the user information</param>
 /// <param name="contextAttribute">the client Context Attribute</param>
 /// <exception cref="ArgumentNullException">the previousContext must be null</exception>
 public NlmpClientSecurityContext(NlmpClientCredential credential, ClientSecurityContextAttribute contextAttribute)
     : this(credential)
 {
     this.contextAttribute        = contextAttribute;
     this.Context.Integrity       = contextAttribute.HasFlag(ClientSecurityContextAttribute.Integrity);
     this.Context.ReplayDetect    = contextAttribute.HasFlag(ClientSecurityContextAttribute.ReplayDetect);
     this.Context.SequenceDetect  = contextAttribute.HasFlag(ClientSecurityContextAttribute.SequenceDetect);
     this.Context.Confidentiality = contextAttribute.HasFlag(ClientSecurityContextAttribute.Confidentiality);
     this.Context.Datagram        = contextAttribute.HasFlag(ClientSecurityContextAttribute.Datagram);
     this.Context.Identify        = contextAttribute.HasFlag(ClientSecurityContextAttribute.Identify);
 }