Creates a credential from an encrypted credentials string encrypted using {@link #encryptToString(String) encryptToString}.paramencryptedCredentials Encrypted credentials string. decryptFromString(encryptedCredentials);
decryptFromString(encryptedCredentials);
Creates a new credential for the given name and password. this.name = name; this.password = password;
this.name = name; this.password = password;
int separatorIndex = encryptedCredentials.indexOf(":"); name = encryptedCredentials.substring(0, separatorIndex); password = encryptedCredentials.substring(separatorIndex+1);
return name + ':" + password;
return name;
return password;