Tpm2Lib.AuthSession.AuthSession C# (CSharp) Method

AuthSession() public method

public AuthSession ( ParametrizedHandle ph ) : System
ph ParametrizedHandle
return System
        public AuthSession(ParametrizedHandle ph)
        {
            if (ph.Handle != TpmRh.None && !ph.Handle.IsSession())
            {
                Globs.Throw<ArgumentException>("AuthSession: Attempt to construct from parametrized non-session handle");
            }
            Handle = ph.Handle;
            foreach(object param in ph.Params)
            {
                if (param is SessionAttr)
                {
                    Attrs = (SessionAttr)param;
                }
                else if (param is byte[])
                {
                    Salt = (byte[])param;
                }
                else if (param != null)
                {
                    Globs.Throw<ArgumentException>("AuthSession: Attempt to construct from malformed parametrized handle");
                }
            }
        }

Same methods

AuthSession::AuthSession ( ) : System
AuthSession::AuthSession ( TpmHandle h ) : System
AuthSession::AuthSession ( TpmSe sessionType, TpmHandle tpmKey, TpmHandle bindObject, byte nonceCaller, byte nonceTpm, SymDef symmetric, TpmAlgId authHash ) : System