學習過程~備忘錄
Sha512Hash s = new Sha512Hash("password", "salt string", 1024); UsernamePasswordToken token = new UsernamePasswordToken("milla", s.toString()); Subject subject = SecurityUtils.getSubject(); subject.login(token);