Package com.eaio.uuid

Examples of com.eaio.uuid.UUID


  @Override
  public UUID fromByteBuffer(ByteBuffer bytes) {
    if (bytes == null) {
      return null;
    }
    return new UUID(bytes.getLong(), bytes.getLong());
  }
View Full Code Here


   * @param request HTTP request
   * @return a new token
   * @see org.springframework.security.web.csrf.CsrfTokenRepository#generateToken(javax.servlet.http.HttpServletRequest)
   */
  public CsrfToken generateToken(HttpServletRequest request) {
    return new DefaultCsrfToken(headerName, parameterName, new UUID().toString());
  }
View Full Code Here

      }

      user = new User();
      user.setEmail(email);
      user.setName(fullName);
      user.setPassword(new UUID().toString());
      user.setIdentifier(token.getIdentityUrl());
      String id = user.create();
      if (id == null) {
        throw new BadCredentialsException("Authentication failed: cannot create new user.");
      }
View Full Code Here

        if (user == null) {
          //user is new
          user = new User();
          user.setEmail(StringUtils.isBlank(fbEmail) ? "email@domain.com" : fbEmail);
          user.setName(StringUtils.isBlank(fbName) ? "No Name" : fbName);
          user.setPassword(new UUID().toString());
          user.setIdentifier(Config.FB_PREFIX.concat(fbID));
          String id = user.create();
          if (id == null) {
            throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
          }
View Full Code Here

TOP

Related Classes of com.eaio.uuid.UUID

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.