public class PkiUtil extends Object
Constructor and Description |
---|
PkiUtil() |
Modifier and Type | Method and Description |
---|---|
static KeyManager[] |
createKeyManagers(KeyStore keystore,
String password,
String algorithm) |
static KeyStore |
createKeyStore(URL url,
String password,
KeystoreType keystoreType,
String purpose) |
static TrustManager[] |
createTrustManagers(KeyStore keystore,
String algorithm) |
static PrivateKey |
getPrivateKey(HasKeystore keystoreOwner,
String purpose) |
static PublicKey |
getPublicKey(HasTruststore truststoreOwner,
String purpose) |
static HasTruststore |
keyStoreAsTrustStore(HasKeystore keystoreOwner) |
public static HasTruststore keyStoreAsTrustStore(HasKeystore keystoreOwner)
public static KeyManager[] createKeyManagers(KeyStore keystore, String password, String algorithm) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
public static TrustManager[] createTrustManagers(KeyStore keystore, String algorithm) throws KeyStoreException, NoSuchAlgorithmException
public static KeyStore createKeyStore(URL url, String password, KeystoreType keystoreType, String purpose) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException
public static PrivateKey getPrivateKey(HasKeystore keystoreOwner, String purpose) throws EncryptionException
EncryptionException
public static PublicKey getPublicKey(HasTruststore truststoreOwner, String purpose) throws EncryptionException
EncryptionException
Copyright © 2023 Frank!Framework. All rights reserved.