|
@@ -117,10 +117,6 @@ fun getXTimestamp(): String {
|
|
return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX").format(Date())
|
|
return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX").format(Date())
|
|
}
|
|
}
|
|
|
|
|
|
-fun getXTimestamp(date: Date?): String {
|
|
|
|
- return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX").format(date)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
@Throws(NoSuchAlgorithmException::class, InvalidKeySpecException::class)
|
|
@Throws(NoSuchAlgorithmException::class, InvalidKeySpecException::class)
|
|
fun generatePrivateKey(privateKey: String): PrivateKey {
|
|
fun generatePrivateKey(privateKey: String): PrivateKey {
|
|
val decodeBytes: ByteArray = Base64.getDecoder().decode(privateKey)
|
|
val decodeBytes: ByteArray = Base64.getDecoder().decode(privateKey)
|
|
@@ -240,7 +236,7 @@ class LoggingInterceptor : Interceptor {
|
|
}
|
|
}
|
|
|
|
|
|
fun print(vararg args: CharSequence?) {
|
|
fun print(vararg args: CharSequence?) {
|
|
- println(java.lang.String.join(",", *args))
|
|
|
|
|
|
+ println(args.joinToString(separator = ","))
|
|
}
|
|
}
|
|
|
|
|
|
fun bodyToString(request: Request): String {
|
|
fun bodyToString(request: Request): String {
|