Skip to content

Commit

Permalink
fixed use of char[]
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Feb 27, 2017
1 parent bfc9bc8 commit bc5beb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkix/src/main/java/org/bouncycastle/est/HttpAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ else if (authHeader.startsWith("basic"))
{
throw new IllegalArgumentException("User must not contain a ':'");
}
String userPass = username + ":" + password;
String userPass = username + ":" + new String(password);
answer.setHeader("Authorization", "Basic " + Base64.toBase64String(userPass.getBytes()));

res = req.getClient().doRequest(answer.build());
Expand Down

0 comments on commit bc5beb2

Please sign in to comment.