Package com.google.gwtjsonrpc.server

Examples of com.google.gwtjsonrpc.server.ValidToken


      throw new IllegalArgumentException(e);
    }
  }

  public ParsedToken decode(String tokenString) throws InvalidTokenException {
    ValidToken token;
    try {
      token = emailRegistrationToken.checkToken(tokenString, null);
    } catch (XsrfException err) {
      throw new InvalidTokenException(err);
    }
    if (token == null || token.getData() == null || token.getData().isEmpty()) {
      throw new InvalidTokenException();
    }

    String payload;
    try {
      payload = new String(Base64.decode(token.getData()), "UTF-8");
    } catch (UnsupportedEncodingException err) {
      throw new InvalidTokenException(err);
    }

    Matcher matcher = Pattern.compile("^([0-9]+):(.+@.+)$").matcher(payload);
View Full Code Here

TOP

Related Classes of com.google.gwtjsonrpc.server.ValidToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.