corda / com.r3.corda.networkmanage.common.cryptoservice / CryptoServiceFactoryImpl

CryptoServiceFactoryImpl

class CryptoServiceFactoryImpl : CryptoServiceFactory

Class responsible for creating the implementation specific Crypto Service object that can be used to interact with the HSM/underlying provider. Note that most of the HSM specific java libraries are proprietary and hence cannot be bundled with our release. Instead, these Jars are provided by the user and hot-loaded at runtime. See static make method.

Constructors

<init>

CryptoServiceFactoryImpl(ctx: <ERROR CLASS>)

Class responsible for creating the implementation specific Crypto Service object that can be used to interact with the HSM/underlying provider. Note that most of the HSM specific java libraries are proprietary and hence cannot be bundled with our release. Instead, these Jars are provided by the user and hot-loaded at runtime. See static make method.

Properties

ctx

val ctx: <ERROR CLASS>

Functions

create

fun create(config: <ERROR CLASS>): CryptoService<out AuthenticationCredentials, out KeyConfig>

createAzureKeyVaultCryptoService

fun createAzureKeyVaultCryptoService(keyVaultUrl: String, protection: <ERROR CLASS>): AzureKeyVaultCryptoService

createBCCryptoService

fun createBCCryptoService(keyStore: <ERROR CLASS>, keyStorePassword: String, keyPassword: String): BCCryptoService

createCloudHsmCryptoService

fun createCloudHsmCryptoService(certificateStore: <ERROR CLASS>): AmazonCloudHsmCryptoService

createGemaltoLunaCryptoService

fun createGemaltoLunaCryptoService(): GemaltoLunaCryptoService

createSecurosysCryptoService

fun createSecurosysCryptoService(host: String, port: Int): SecurosysPrimusXCryptoService

createUtimacoCryptoService

fun createUtimacoCryptoService(host: String, port: Int, keyGroup: String, keySpecifier: Int, authThreshold: Int): UtimacoCryptoService

Companion Object Functions

make

fun make(hsmJars: List<URL>, hsmSharedLibraries: List<Path>, ctx: <ERROR CLASS>): CryptoServiceFactoryImpl