Class P11PKIConfiguration
- java.lang.Object
-
- net.maritimeconnectivity.pki.PKIConfiguration
-
- net.maritimeconnectivity.pki.pkcs11.P11PKIConfiguration
-
public class P11PKIConfiguration extends PKIConfiguration
Class for holding the configuration for PKCS#11 of an instance of the PKI
-
-
Constructor Summary
Constructors Constructor Description P11PKIConfiguration(@NonNull String rootCAAlias, String pkcs11ConfigPath, char[] pkcs11Pin)
P11PKIConfiguration(@NonNull String rootCAAlias, String pkcs11ConfigPath, String pkcs11Pin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getPkcs11Pin()
String
getPkcs11ProviderName()
AuthProvider
getProvider()
void
providerLogin()
Login to the HSMvoid
providerLogout()
Logout from the HSM-
Methods inherited from class net.maritimeconnectivity.pki.PKIConfiguration
getRootCAAlias, getRootCaKeyPassword, getRootCaKeystorePassword, getRootCaKeystorePath, getSubCaKeyPassword, getSubCaKeystorePassword, getSubCaKeystorePath, getTruststorePassword, getTruststorePath, setRootCAAlias, setRootCaKeyPassword, setRootCaKeystorePassword, setRootCaKeystorePath, setSubCaKeyPassword, setSubCaKeystorePassword, setSubCaKeystorePath, setTruststorePassword, setTruststorePath, toString
-
-
-
-
Constructor Detail
-
P11PKIConfiguration
public P11PKIConfiguration(@NonNull @NonNull String rootCAAlias, String pkcs11ConfigPath, String pkcs11Pin)
- Parameters:
rootCAAlias
- the alias for the root CA that should be usedpkcs11ConfigPath
- the path of the PKCS#11 configuration filepkcs11Pin
- the pin that should be used for logging in to the HSM
-
P11PKIConfiguration
public P11PKIConfiguration(@NonNull @NonNull String rootCAAlias, String pkcs11ConfigPath, char[] pkcs11Pin)
- Parameters:
rootCAAlias
- the alias for the root CA that should be usedpkcs11ConfigPath
- the path of the PKCS#11 configuration filepkcs11Pin
- the pin that should be used for logging in to the HSM
-
-
Method Detail
-
providerLogin
public void providerLogin()
Login to the HSM
-
providerLogout
public void providerLogout()
Logout from the HSM
-
getPkcs11ProviderName
public String getPkcs11ProviderName()
-
getProvider
public AuthProvider getProvider()
-
getPkcs11Pin
public char[] getPkcs11Pin()
-
-