Skip to content

Commit

Permalink
use StandardCharsets (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Jan 13, 2024
1 parent 82132f0 commit 9b9dcaa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package playground

import java.io.File
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
import java.nio.file.{ FileSystem, Files, Path, Paths }
import java.security.PublicKey
import java.util
Expand All @@ -26,7 +26,7 @@ object SftpServerEmbedded {

val resourcePath = "./src/main/resources"

val clientPrivateKeyPassphrase: Array[Byte] = "secret".getBytes(Charset.forName("UTF-8"))
val clientPrivateKeyPassphrase: Array[Byte] = "secret".getBytes(StandardCharsets.UTF_8)
var clientPrivateKeyFile: String = new File(s"$resourcePath/id_rsa").getAbsolutePath
val keyPairProviderFile: String = new File(s"$resourcePath/hostkey.pem").getAbsolutePath

Expand Down

0 comments on commit 9b9dcaa

Please sign in to comment.