Apache.Shiro.Authz.Aop.AuthenticatedAttributeHandler.AssertAuthorized C# (CSharp) Method

AssertAuthorized() public method

public AssertAuthorized ( Attribute attribute ) : void
attribute System.Attribute
return void
        public override void AssertAuthorized(Attribute attribute)
        {
            if (attribute is RequiresAuthenticationAttribute && !GetSubject().Authenticated)
            {
                throw new UnauthenticatedException("The current Subject is not authenticated. Access denied.");
            }
        }