Apache.Shiro.Authc.SimpleAccount.Merge C# (CSharp) Method

Merge() public method

public Merge ( IAuthenticationInfo other ) : void
other IAuthenticationInfo
return void
        public void Merge(IAuthenticationInfo other)
        {
            _authcInfo.Merge(other);

            if (other is SimpleAccount)
            {
                var account = (SimpleAccount) other;
                if (account.CredentialsExpired)
                {
                    CredentialsExpired = account.CredentialsExpired;
                }
                if (account.Locked)
                {
                    Locked = true;
                }
            }
        }