/**
  * Returns credentials of the given user, returns null if there are none.
  *
  * @param userId The id of the user.
  * @return A credential object or null.
  */
 public Credential get(String userId) {
   Credential credential = buildEmpty();
   if (credentialStore.load(userId, credential)) {
     return credential;
   }
   return null;
 }
 /**
  * Saves credentials of the given user.
  *
  * @param userId The id of the user.
  * @param credential A credential object to save.
  */
 public void save(String userId, Credential credential) {
   credentialStore.store(userId, credential);
 }
 /**
  * Deletes credentials of the given user.
  *
  * @param userId The id of the user.
  */
 public void delete(String userId) {
   credentialStore.delete(userId, get(userId));
 }