mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-04 20:30:36 +00:00
Merge pull request #661 from alexbakker/fix-660
Use name() instead of toString() on StandardCharsets.UTF_8
This commit is contained in:
commit
ec1913c77a
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ public class VaultManager {
|
|||
* Google Authenticator URI's and writing it to the given OutputStream.
|
||||
*/
|
||||
public void exportGoogleUris(OutputStream outStream) throws VaultManagerException {
|
||||
try (PrintStream stream = new PrintStream(outStream, false, StandardCharsets.UTF_8.toString())) {
|
||||
try (PrintStream stream = new PrintStream(outStream, false, StandardCharsets.UTF_8.name())) {
|
||||
for (VaultEntry entry : getEntries()) {
|
||||
GoogleAuthInfo info = new GoogleAuthInfo(entry.getInfo(), entry.getName(), entry.getIssuer());
|
||||
stream.println(info.getUri().toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue