Package oauth.common

Examples of oauth.common.UserRegistration


  public UserRegistration register(@FormParam("user") String name, @FormParam("password") String password) {
    if (accounts.getAccount(name) != null) {
      throw new WebApplicationException(400);
    }
    accounts.setAccount(name, new UserAccount(name, password));
    return new UserRegistration(name);
  }
View Full Code Here

TOP

Related Classes of oauth.common.UserRegistration

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.