@Override protected void callback(ArtifactoryServer server, UnmarshallingContext context) { if (StringUtils.isNotBlank(server.userName) && (server.resolverCredentials == null)) { server.resolverCredentials = new Credentials(server.userName, Scrambler.descramble(server.password)); } }
@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"); } }
public String getManagerPassword() { return Scrambler.descramble(managerPassword); }