Apache.Shiro.Subject.DelegatingSubject.AssertAuthcCheckPossible C# (CSharp) Method

AssertAuthcCheckPossible() protected method

protected AssertAuthcCheckPossible ( ) : void
return void
        protected virtual void AssertAuthcCheckPossible()
        {
            if (!HasPrincipals())
            {
                throw new UnauthenticatedException(
                    string.Format(Properties.Resources.AuthcCheckNotPossibleMessage,
                        typeof(ISubject).Name, typeof(IAuthenticationInfo).Name));
            }
        }