コード例 #1
0
 @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));
   }
 }
コード例 #2
0
 @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");
     }
 }
コード例 #3
0
 public String getManagerPassword() {
   return Scrambler.descramble(managerPassword);
 }