Skip to content

Commit

Permalink
Remove internal usages of "slave" term.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffret-b committed Oct 28, 2019
1 parent 3282532 commit ee83f68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ public static HandshakeCiphers create(String salt, String secret) {
}
}

private static SecretKey generateSecretKey(String slaveName, String slaveSecret)
private static SecretKey generateSecretKey(String agentName, String agentSecret)
throws GeneralSecurityException {
SecretKeyFactory factory = SecretKeyFactory.getInstance(FACTORY_ALGORITHM);
KeySpec spec = new PBEKeySpec(
slaveSecret.toCharArray(), slaveName.getBytes(StandardCharsets.UTF_8),
agentSecret.toCharArray(), agentName.getBytes(StandardCharsets.UTF_8),
INTEGRATION_COUNT, KEY_LENGTH);
SecretKey tmpSecret = factory.generateSecret(spec);
return new SecretKeySpec(tmpSecret.getEncoded(), SPEC_ALGORITHM);
Expand Down

0 comments on commit ee83f68

Please sign in to comment.