WrappedKeySecurityTokenParameters.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel.Security.Tokens
  5. {
  6. using System.IdentityModel.Selectors;
  7. using System.ServiceModel;
  8. using System.IdentityModel.Tokens;
  9. using System.ServiceModel.Security;
  10. class WrappedKeySecurityTokenParameters : SecurityTokenParameters
  11. {
  12. protected WrappedKeySecurityTokenParameters(WrappedKeySecurityTokenParameters other)
  13. : base(other)
  14. {
  15. // empty
  16. }
  17. public WrappedKeySecurityTokenParameters()
  18. : base()
  19. {
  20. this.InclusionMode = SecurityTokenInclusionMode.Once;
  21. }
  22. internal protected override bool HasAsymmetricKey { get { return false; } }
  23. internal protected override bool SupportsClientAuthentication { get { return false; } }
  24. internal protected override bool SupportsServerAuthentication { get { return true; } }
  25. internal protected override bool SupportsClientWindowsIdentity { get { return false; } }
  26. protected override SecurityTokenParameters CloneCore()
  27. {
  28. return new WrappedKeySecurityTokenParameters(this);
  29. }
  30. internal protected override SecurityKeyIdentifierClause CreateKeyIdentifierClause(SecurityToken token, SecurityTokenReferenceStyle referenceStyle)
  31. {
  32. return base.CreateKeyIdentifierClause<EncryptedKeyHashIdentifierClause, LocalIdKeyIdentifierClause>(token, referenceStyle);
  33. }
  34. protected internal override void InitializeSecurityTokenRequirement(SecurityTokenRequirement requirement)
  35. {
  36. throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException());
  37. }
  38. }
  39. }