2025-01-13UsernamePasswordAuthenticationToken 类的构造器逻辑,来控制 isAuthenticated 的默认值publicclassUsernamePasswordAuthenticationTokenextendsAbstractAuthenticationToken{privatefinalObjectprincipal;privateObjectcredentials;//构造器1:未认证时调用publicUsernamePasswordAuthenticationToken(Objectprincipal,Objectcredent