5253545556575859606162
/** * */ public TokenDialog(String id) { super(JOptionPane.getRootFrame(), "...", true); this.md5Token = new Md5Token(id); setDefaultCloseOperation(DISPOSE_ON_CLOSE); this.setTitle("Generate Password"); this.setSize(new Dimension(220, 110));
80818283848586878889909192
if (encPass.equals(newRawPass)) { /* * eingegebenes Token ermitteln */ String rawToken = StringUtils.right(rawPass, Md5Token.TOKEN_LENGTH); Md5Token md5Token = (Md5Token) token; /* * Token prüfen */ return md5Token.isEqualsToken(rawToken); } return false; }
79808182838485
*/ public Md5Token getToken() { if (StringUtils.isBlank(getUsrToken())) { return null; } return new Md5Token(getUsrToken()); }