Skip to content

Commit

Permalink
Merge pull request #352 from jeffret-b/removeInternalSlave
Browse files Browse the repository at this point in the history
Remove internal usages of "slave" term.
  • Loading branch information
jeffret-b committed Nov 2, 2019
2 parents 80b0054 + ee83f68 commit c6e21cf
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 c6e21cf

Please sign in to comment.