|
|
@ -4,7 +4,7 @@ import com.google.inject.AbstractModule |
|
|
|
import com.google.inject.Scopes |
|
|
|
import com.google.inject.Scopes |
|
|
|
import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters |
|
|
|
import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters |
|
|
|
|
|
|
|
|
|
|
|
class CryptoModule : AbstractModule() { |
|
|
|
object CryptoModule : AbstractModule() { |
|
|
|
override fun configure() { |
|
|
|
override fun configure() { |
|
|
|
bind(RSAPrivateCrtKeyParameters::class.java) |
|
|
|
bind(RSAPrivateCrtKeyParameters::class.java) |
|
|
|
.toProvider(RsaKeyProvider::class.java) |
|
|
|
.toProvider(RsaKeyProvider::class.java) |
|
|
|