Tpm2Lib.TpmHandle.SetAuth C# (CSharp) Method

SetAuth() public method

Associates authorization value with the handle. This association is done automatically by TPM commands producing the corresponding handle or changing object's auth value. However on many occasions the library does not have access to the auth value at any moment before it is required for authorizing access to the handle. Notably, when an externally created key is imported, pre-existing NV index or persistent object is used, SetAuth() is required to associate auth value with the handle.
public SetAuth ( AuthValue auth ) : TpmHandle
auth AuthValue
return TpmHandle
        public TpmHandle SetAuth(AuthValue auth)
        {
            Auth = auth;
            return this;
        }