Beispiel #1
0
 internal SecurityFrame(RuntimeSecurityFrame frame)
 {
     _domain     = null;
     _method     = null;
     _assert     = null;
     _deny       = null;
     _permitonly = null;
     InitFromRuntimeFrame(frame);
 }
 internal SecurityFrame(RuntimeSecurityFrame frame)
 {
     this._domain     = null;
     this._method     = null;
     this._assert     = null;
     this._deny       = null;
     this._permitonly = null;
     this.InitFromRuntimeFrame(frame);
 }
		internal SecurityFrame (RuntimeSecurityFrame frame)
		{
			_domain = null;
			_method = null;
			_assert = null;
			_deny = null;
			_permitonly = null;
			InitFromRuntimeFrame (frame);
		}
 internal void InitFromRuntimeFrame(RuntimeSecurityFrame frame)
 {
     this._domain = frame.domain;
     this._method = frame.method;
     if (frame.assert.size > 0)
     {
         this._assert = SecurityManager.Decode(frame.assert.blob, frame.assert.size);
     }
     if (frame.deny.size > 0)
     {
         this._deny = SecurityManager.Decode(frame.deny.blob, frame.deny.size);
     }
     if (frame.permitonly.size > 0)
     {
         this._permitonly = SecurityManager.Decode(frame.permitonly.blob, frame.permitonly.size);
     }
 }
Beispiel #5
0
        // Note: SecurityManager.Decode implements a cache - so not every call
        // ends up making an icall
        internal void InitFromRuntimeFrame(RuntimeSecurityFrame frame)
        {
            _domain = frame.domain;
            _method = frame.method;

#if !DISABLE_SECURITY
            if (frame.assert.size > 0)
            {
                _assert = SecurityManager.Decode(frame.assert.blob, frame.assert.size);
            }
            if (frame.deny.size > 0)
            {
                _deny = SecurityManager.Decode(frame.deny.blob, frame.deny.size);
            }
            if (frame.permitonly.size > 0)
            {
                _permitonly = SecurityManager.Decode(frame.permitonly.blob, frame.permitonly.size);
            }
#endif
        }
		// Note: SecurityManager.Decode implements a cache - so not every call
		// ends up making an icall
		internal void InitFromRuntimeFrame (RuntimeSecurityFrame frame)
		{
			_domain = frame.domain;
			_method = frame.method;

			if (frame.assert.size > 0) {
				_assert = SecurityManager.Decode (frame.assert.blob, frame.assert.size);
			}
			if (frame.deny.size > 0) {
				_deny = SecurityManager.Decode (frame.deny.blob, frame.deny.size);
			}
			if (frame.permitonly.size > 0) {
				_permitonly = SecurityManager.Decode (frame.permitonly.blob, frame.permitonly.size);
			}
		}