Example #1
0
 protected WSSecureConversation(WSSecurityTokenSerializer tokenSerializer, int maxKeyDerivationOffset, int maxKeyDerivationLabelLength, int maxKeyDerivationNonceLength)
 {
     if (tokenSerializer == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenSerializer));
     }
     this.tokenSerializer = tokenSerializer;
     this.derivedKeyEntry = new DerivedKeyTokenEntry(this, maxKeyDerivationOffset, maxKeyDerivationLabelLength, maxKeyDerivationNonceLength);
 }
Example #2
0
            protected BinaryTokenEntry(WSSecurityTokenSerializer tokenSerializer, string[] valueTypeUris)
            {
                if (valueTypeUris == null)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(valueTypeUris));
                }

                _tokenSerializer = tokenSerializer;
                _valueTypeUris   = new string[valueTypeUris.GetLength(0)];
                for (int i = 0; i < _valueTypeUris.GetLength(0); ++i)
                {
                    _valueTypeUris[i] = valueTypeUris[i];
                }
            }
        public WSSecureConversationFeb2005(WSSecurityTokenSerializer tokenSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable <Type> knownTypes,
                                           int maxKeyDerivationOffset, int maxKeyDerivationLabelLength, int maxKeyDerivationNonceLength)
            : base(tokenSerializer, maxKeyDerivationOffset, maxKeyDerivationLabelLength, maxKeyDerivationNonceLength)
        {
            if (securityStateEncoder != null)
            {
                _securityStateEncoder = securityStateEncoder;
            }
            else
            {
                _securityStateEncoder = new DataProtectionSecurityStateEncoder();
            }

            _knownClaimTypes = new List <Type>();
            if (knownTypes != null)
            {
                // Clone this collection.
                foreach (Type knownType in knownTypes)
                {
                    _knownClaimTypes.Add(knownType);
                }
            }
        }
Example #4
0
 public WSSecurityXXX2005(WSSecurityTokenSerializer tokenSerializer, SamlSerializer samlSerializer)
     : base(tokenSerializer, samlSerializer)
 {
 }
Example #5
0
 public WrappedKeyTokenEntry(WSSecurityTokenSerializer tokenSerializer)
     : base(tokenSerializer)
 {
 }
Example #6
0
 protected BinaryTokenEntry(WSSecurityTokenSerializer tokenSerializer, string valueTypeUri)
 {
     _tokenSerializer  = tokenSerializer;
     _valueTypeUris    = new string[1];
     _valueTypeUris[0] = valueTypeUri;
 }
Example #7
0
 public WSSecurityJan2004(WSSecurityTokenSerializer tokenSerializer, SamlSerializer samlSerializer)
 {
     WSSecurityTokenSerializer = tokenSerializer;
     SamlSerializer            = samlSerializer;
 }
Example #8
0
 public WSTrustFeb2005(WSSecurityTokenSerializer tokenSerializer)
     : base(tokenSerializer)
 {
 }
Example #9
0
 public X509TokenEntry(WSSecurityTokenSerializer tokenSerializer)
     : base(tokenSerializer, ValueTypeAbsoluteUri)
 {
 }
Example #10
0
 public UserNamePasswordTokenEntry(WSSecurityTokenSerializer tokenSerializer)
 {
     _tokenSerializer = tokenSerializer;
 }