Exemple #1
0
 internal override SecurityProtocol OnCreateSecurityProtocol(EndpointAddress target, Uri via, TimeSpan timeout)
 {
     if (this.SecurityTokenParameters == null)
     {
         OnPropertySettingsError("SecurityTokenParameters", true);
     }
     if (this.SecurityTokenParameters.RequireDerivedKeys)
     {
         this.ExpectKeyDerivation       = true;
         this.derivedKeyTokenParameters = new SessionDerivedKeySecurityTokenParameters(this.ActAsInitiator);
     }
     return(new AcceptorSessionSymmetricTransportSecurityProtocol(this));
 }
Exemple #2
0
 public override Task OnOpenAsync(TimeSpan timeout)
 {
     base.OnOpenAsync(timeout);
     if (this.SecurityTokenParameters == null)
     {
         OnPropertySettingsError("SecurityTokenParameters", true);
     }
     if (this.SecurityTokenParameters.RequireDerivedKeys)
     {
         this.ExpectKeyDerivation       = true;
         this.derivedKeyTokenParameters = new SessionDerivedKeySecurityTokenParameters(this.ActAsInitiator);
     }
     return(Task.CompletedTask);
 }
Exemple #3
0
 protected SessionDerivedKeySecurityTokenParameters(SessionDerivedKeySecurityTokenParameters other) : base(other)
 {
     _actAsInitiator = other._actAsInitiator;
 }