code: public String deriveKeyFormatted(String inputPassword) {
  		PBKDF2Parameters p = getParameters();
  		byte[] salt = generateSalt();
  		p.setSalt(salt);
  		p.setDerivedKey(deriveKey(inputPassword));
  		String formatted = getFormatter().toString(p);
  		return formatted;
  	}
docs: Derive key from password, then format.
  
  @param inputPassword The password to derive key from.
  @return &quot;salt:iteration-count:derived-key&quot; (depends on effective formatter)