Ejemplo n.º 1
0
		internal SecurityContext(
			SecurityCredentials credentials,
			Int64 contextHandle,
			Int64 contextExpiry,
			SecurityContextType contextType,
			SecurityContextState contextState)
		{
			// parameters validation
			if (credentials == null)
				throw new ArgumentNullException("credentials");
			if (contextHandle == 0)
				throw new ArgumentNullException("contextHandle");

			_credentials = credentials;

			_contextHandle = contextHandle;
			_contextExpiry = contextExpiry;
			_contextType = contextType;
			_contextState = contextState;
		}
Ejemplo n.º 2
0
        internal SecurityContext(
            SecurityCredentials credentials,
            Int64 contextHandle,
            Int64 contextExpiry,
            SecurityContextType contextType,
            SecurityContextState contextState)
        {
            // parameters validation
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }
            if (contextHandle == 0)
            {
                throw new ArgumentNullException("contextHandle");
            }

            _credentials = credentials;

            _contextHandle = contextHandle;
            _contextExpiry = contextExpiry;
            _contextType   = contextType;
            _contextState  = contextState;
        }
Ejemplo n.º 3
0
 public SecurityContext(SecurityContextType value)
 {
     this.Value = value;
 }