Beispiel #1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is DelegatingPrincipal))
            {
                return(false);
            }

            DelegatingPrincipal that = ( DelegatingPrincipal )o;

            return(_username.Equals(that._username));
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public AuthorizedRequestWrapper(final String authType, final String username, final javax.servlet.http.HttpServletRequest request, org.neo4j.internal.kernel.api.security.LoginContext loginContext)
        public AuthorizedRequestWrapper(string authType, string username, HttpServletRequest request, LoginContext loginContext) : base(request)
        {
            this._authType  = authType;
            this._principal = new DelegatingPrincipal(username, loginContext);
        }