public void SetIdentity(string userName, string authenticationType, bool isAuthenticated)
        {
            var identity = new IdentityCustom();

            identity.SetAuthenticationType(authenticationType);
            identity.SetIsAuthenticated(isAuthenticated);
            identity.SetName(userName);
            this._identity = identity;
        }
 public void SetIdentity(IdentityCustom identity)
 {
     this._identity = identity;
 }
 public PrincipalCustom(IdentityCustom identity)
 {
     this._identity = identity;
 }