From 4885f9a96bf815d9ba38327876fb339b28108c9c Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Thu, 17 Feb 2022 01:02:45 +0000 Subject: [PATCH] Make some stuff private --- crypto/js/src/main/scala/org/http4s/crypto/Priority.scala | 2 +- .../main/scala/org/http4s/crypto/SecurityException.scala | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/js/src/main/scala/org/http4s/crypto/Priority.scala b/crypto/js/src/main/scala/org/http4s/crypto/Priority.scala index 5b7a143..be198b1 100644 --- a/crypto/js/src/main/scala/org/http4s/crypto/Priority.scala +++ b/crypto/js/src/main/scala/org/http4s/crypto/Priority.scala @@ -26,7 +26,7 @@ package org.http4s.crypto * This type can be useful for problems where multiple algorithms can be used, depending on the * type classes available. */ -sealed trait Priority[+P, +F] { +private[http4s] sealed trait Priority[+P, +F] { import Priority.{Fallback, Preferred} diff --git a/crypto/js/src/main/scala/org/http4s/crypto/SecurityException.scala b/crypto/js/src/main/scala/org/http4s/crypto/SecurityException.scala index 39e829f..8583264 100644 --- a/crypto/js/src/main/scala/org/http4s/crypto/SecurityException.scala +++ b/crypto/js/src/main/scala/org/http4s/crypto/SecurityException.scala @@ -16,11 +16,11 @@ package org.http4s.crypto -class GeneralSecurityException(message: String = null, cause: Throwable = null) +private[http4s] class GeneralSecurityException(message: String = null, cause: Throwable = null) extends Exception(message, cause) -class KeyException(message: String = null, cause: Throwable = null) +private[http4s] class KeyException(message: String = null, cause: Throwable = null) extends GeneralSecurityException(message, cause) -class InvalidKeyException(message: String = null, cause: Throwable = null) +private[http4s] class InvalidKeyException(message: String = null, cause: Throwable = null) extends KeyException(message, cause)