Updated getCredential() method, changed getUsername(), getPassword() and getEncryptedPassword to protected.