Class EncryptedKeyStore
- java.lang.Object
-
- de.xima.fc.certificate.provider.internal.rpc.EncryptedKeyStore
-
- All Implemented Interfaces:
Serializable
public final class EncryptedKeyStore extends Object implements Serializable
Represents an encrypted key store containing certificates and private keys. The model is serializable for RPC communication.- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EncryptedKeyStore(byte[] keystoreBytes, String keystoreType, String passwordHint)Creates a newEncryptedKeyStoreinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static EncryptedKeyStoreforBundles(Iterable<CertificateBundle> certificateBundles, char[] password, String passwordHint)byte[]getKeystoreBytes()The bytes of the PKCS#12 keystoreStringgetKeystoreType()The type of the keystore, typically "PKCS12" or "JKS".StringgetPasswordHint()A hint for the password used to encrypt the keystore.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
EncryptedKeyStore
public EncryptedKeyStore(byte[] keystoreBytes, String keystoreType, String passwordHint)Creates a newEncryptedKeyStoreinstance.- Parameters:
keystoreBytes- The bytes of the PKCS#12 keystorekeystoreType- The type of the keystore, typically "PKCS12" or "JKS".passwordHint- A hint for the password used to encrypt the keystore. This is not the actual password, but a hint as to which password was used to encrypt the keystore.
-
-
Method Detail
-
forBundles
public static EncryptedKeyStore forBundles(Iterable<CertificateBundle> certificateBundles, char[] password, String passwordHint) throws FcCertificateProviderException
- Throws:
FcCertificateProviderException
-
getKeystoreBytes
public byte[] getKeystoreBytes()
The bytes of the PKCS#12 keystore
-
getKeystoreType
public String getKeystoreType()
The type of the keystore, typically "PKCS12" or "JKS".
-
getPasswordHint
public String getPasswordHint()
A hint for the password used to encrypt the keystore. This is not the actual password, but a hint as to which password was used to encrypt the keystore.
-
-