private Object readResolve() { if (secretPassword == null) // backward compatibility : get scrambled password and store it encrypted secretPassword = Secret.fromString(Scrambler.descramble(password)); password = null; authenticator = newAuthenticator(); return this; }
@Override protected void callback(Details d, UnmarshallingContext context) { // Convert to hashed password and report to monitor if we load old data if (d.password!=null && d.passwordHash==null) { d.passwordHash = PASSWORD_ENCODER.encodePassword(Scrambler.descramble(d.password),null); OldDataMonitor.report(context, "1.283"); } } }
String uidpassword = Scrambler.descramble(authorization.substring(6)); int idx = uidpassword.indexOf(':'); if (idx >= 0) {
String uidpassword = Scrambler.descramble(authorization.substring(6)); int idx = uidpassword.indexOf(':'); if (idx >= 0) {
/** * Returns the password that should be used to try and identify * with NickServ. */ public String getNickServPassword() { return Scrambler.descramble(nickServPassword); }
/** * Returns the clear-text password (unscrambled) * * @return Password */ public String getPassword() { return Scrambler.descramble(password); } }
@Property(RemotePropertySet.PASSWORD) public String getPassword() { return Scrambler.descramble(passwordScrambled); }
public Object readResolve() { if (secretPassword == null) // backward compatibility : get scrambled password and store it encrypted secretPassword = Secret.fromString(Scrambler.descramble(password)); password = null; return this; }
@Override public SVNAuthentication createSVNAuthentication(String kind) { if (kind.equals(ISVNAuthenticationManager.SSH)) { return new SVNSSHAuthentication(userName, Scrambler.descramble(password), -1, false, null, false); } return new SVNPasswordAuthentication(userName, Scrambler.descramble(password), false, null, false); }
public List<SVNAuthentication> build(String kind, SVNURL url) { if (ISVNAuthenticationManager.SSL.equals(kind)) { SVNSSLAuthentication authentication = SVNSSLAuthentication.newInstance( certificateFile, Scrambler.descramble(password).toCharArray(), false, url, false); return Collections.<SVNAuthentication>singletonList( authentication); } return Collections.emptyList(); } }
public List<SVNAuthentication> build(String kind, SVNURL url) { if (ISVNAuthenticationManager.PASSWORD.equals(kind)) { return Collections.<SVNAuthentication>singletonList( new SVNPasswordAuthentication(username, Scrambler.descramble(password), false, url, false)); } if (ISVNAuthenticationManager.SSH.equals(kind)) { return Collections.<SVNAuthentication>singletonList( new SVNSSHAuthentication(username, Scrambler.descramble(password), -1, false, url, false)); } return Collections.emptyList(); } }
@Override public SVNAuthentication createSVNAuthentication(String kind) { if (kind.equals(ISVNAuthenticationManager.SSH)) { return new SVNSSHAuthentication(userName, Scrambler.descramble(password), -1, false); } else { return new SVNPasswordAuthentication(userName, Scrambler.descramble(password), false); } }
public List<SVNAuthentication> build(String kind, SVNURL url) { List<SVNAuthentication> result = new ArrayList<SVNAuthentication>(); if (ISVNAuthenticationManager.SSH.equals(kind)) { for (String privateKey : privateKeys) { result.add(new SVNSSHAuthentication(username, privateKey.toCharArray(), Scrambler.descramble(passphrase), -1, false, url, false)); } } return result; } }
@Override protected void callback(Details d, UnmarshallingContext context) { // Convert to hashed password and report to monitor if we load old data if (d.password != null && d.passwordHash == null) { d.passwordHash = PASSWORD_ENCODER.encodePassword(Scrambler.descramble(d.password), null); OldDataMonitor.report(context, "1.283"); } } }
@Override protected void callback(Details d, UnmarshallingContext context) { // Convert to hashed password and report to monitor if we load old data if (d.password!=null && d.passwordHash==null) { d.passwordHash = PASSWORD_ENCODER.encodePassword(Scrambler.descramble(d.password),null); OldDataMonitor.report(context, "1.283"); } } }
@Override protected void callback(Details d, UnmarshallingContext context) { // Convert to hashed password and report to monitor if we load old data if (d.password!=null && d.passwordHash==null) { d.passwordHash = PASSWORD_ENCODER.encodePassword(Scrambler.descramble(d.password),null); OldDataMonitor.report(context, "1.283"); } } }
@Override protected void callback(Details d, UnmarshallingContext context) { // Convert to hashed password and report to monitor if we load old data if (d.password!=null && d.passwordHash==null) { d.passwordHash = PASSWORD_ENCODER.encodePassword(Scrambler.descramble(d.password),null); OldDataMonitor.report(context, "1.283"); } } }
@Override protected void callback(Details d, UnmarshallingContext context) { // Convert to hashed password and report to monitor if we load old data if (d.password!=null && d.passwordHash==null) { d.passwordHash = PASSWORD_ENCODER.encodePassword(Scrambler.descramble(d.password),null); OldDataMonitor.report(context, "1.283"); } } }
@SuppressWarnings("unused" /* Migrate legacy data */) private Object readResolve() { if (password == null && userPassword != null) { password = Secret.fromString(Scrambler.descramble(userPassword)); userPassword = null; } if (userName != null && password != null) { credentialsConfigurer = new ManualCredentialsConfigurer(userName, password); } return this; }
@Override public StandardCertificateCredentials toCredentials(String description) { return new CertificateCredentialsImpl(CredentialsScope.GLOBAL, null, description, Scrambler.descramble(Secret.toString(password)), new CertificateCredentialsImpl.UploadedKeyStoreSource(certificate.getEncryptedValue())); }