Examples of UnlockedKeySet


Examples of com.wesabe.grendel.openpgp.UnlockedKeySet

   */
  public Session buildSession(UserDAO userDAO) throws WebApplicationException {
    final User user = userDAO.findById(username);
    if (user != null) {
      try {
        final UnlockedKeySet keySet = user.getKeySet().unlock(password.toCharArray());
        return new Session(user, keySet);
      } catch (CryptographicException e) {
        throw new WebApplicationException(CHALLENGE);
      }
    }
View Full Code Here

Examples of com.wesabe.grendel.openpgp.UnlockedKeySet

    final Session session = credentials.buildSession(userDAO, id);
   
    checkPreconditions(request, session.getUser());
   
    final User user = session.getUser();
    final UnlockedKeySet keySet = session.getKeySet();
   
    user.setKeySet(
      keySet.relock(
        credentials.getPassword().toCharArray(),
        entity.getPassword(),
        randomProvider.get()
      )
    );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.