Package org.jumpmind.security
Class AzureKeyVaultSecurityService
java.lang.Object
org.jumpmind.security.SecurityService
org.jumpmind.security.BouncyCastleSecurityService
org.jumpmind.security.AzureKeyVaultSecurityService
- All Implemented Interfaces:
ISecurityService
public class AzureKeyVaultSecurityService
extends BouncyCastleSecurityService
implements ISecurityService
-
Field Summary
Fields inherited from class org.jumpmind.security.SecurityService
hasInitKeyStore, keyStoreFileName, keyStoreURL, log, secretKey, trustStoreFileName, trustStoreURL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
deleteKeystoreEntry
(String alias) exportCurrentSslCert
(boolean includePrivateKey) getKeystoreEntry
(String alias) protected void
void
installDefaultSslCert
(String host) void
protected void
saveKeyStore
(KeyStore ks, String password) void
setKeystoreEntry
(String alias, String value) void
setKeystoreEntry
(String alias, Key key) boolean
boolean
boolean
boolean
Methods inherited from class org.jumpmind.security.BouncyCastleSecurityService
createDefaultSslCert, createSslCert, createSslCert, createTrustedCert, exportTrustedCert, generateRSAKeyPair, generateV1Certificate, installDefaultSamlSslCert, readPemBytes
Methods inherited from class org.jumpmind.security.SecurityService
decrypt, encrypt, getBytes, getCipher, getDefaultSecretKey, getKeyManagerFactory, getKeyManagerFactoryAlgorithm, getKeyStorePassword, getKeyStoreType, getTrustStore, getTrustStorePassword, init, initializeCipher, installTrustedCert, nextSecureHexString, obfuscate, saveTrustStore, unobfuscate, unobfuscateIfNeeded
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jumpmind.security.ISecurityService
createDefaultSslCert, createSslCert, createTrustedCert, decrypt, encrypt, exportTrustedCert, getCipher, getKeyManagerFactory, getTrustStore, init, installDefaultSamlSslCert, installTrustedCert, nextSecureHexString, obfuscate, saveTrustStore, unobfuscate, unobfuscateIfNeeded
-
Constructor Details
-
AzureKeyVaultSecurityService
protected AzureKeyVaultSecurityService()
-
-
Method Details
-
supportsExportCertificate
public boolean supportsExportCertificate()- Specified by:
supportsExportCertificate
in interfaceISecurityService
- Overrides:
supportsExportCertificate
in classBouncyCastleSecurityService
-
supportsImportCertificate
public boolean supportsImportCertificate()- Specified by:
supportsImportCertificate
in interfaceISecurityService
- Overrides:
supportsImportCertificate
in classBouncyCastleSecurityService
-
supportsBackupCertificate
public boolean supportsBackupCertificate()- Specified by:
supportsBackupCertificate
in interfaceISecurityService
- Overrides:
supportsBackupCertificate
in classBouncyCastleSecurityService
-
supportsGenerateSelfSignedCertificate
public boolean supportsGenerateSelfSignedCertificate()- Specified by:
supportsGenerateSelfSignedCertificate
in interfaceISecurityService
- Overrides:
supportsGenerateSelfSignedCertificate
in classBouncyCastleSecurityService
-
getKeyStore
- Specified by:
getKeyStore
in interfaceISecurityService
- Overrides:
getKeyStore
in classSecurityService
-
saveKeyStore
- Overrides:
saveKeyStore
in classSecurityService
- Throws:
Exception
-
getKeystoreEntry
- Specified by:
getKeystoreEntry
in interfaceISecurityService
- Overrides:
getKeystoreEntry
in classSecurityService
- Throws:
Exception
-
setKeystoreEntry
- Specified by:
setKeystoreEntry
in interfaceISecurityService
- Overrides:
setKeystoreEntry
in classSecurityService
- Throws:
Exception
-
setKeystoreEntry
- Throws:
Exception
-
deleteKeystoreEntry
- Specified by:
deleteKeystoreEntry
in interfaceISecurityService
- Overrides:
deleteKeystoreEntry
in classSecurityService
-
installDefaultSslCert
- Specified by:
installDefaultSslCert
in interfaceISecurityService
- Overrides:
installDefaultSslCert
in classBouncyCastleSecurityService
-
installSslCert
- Specified by:
installSslCert
in interfaceISecurityService
- Overrides:
installSslCert
in classBouncyCastleSecurityService
-
getCurrentSslCert
- Specified by:
getCurrentSslCert
in interfaceISecurityService
- Overrides:
getCurrentSslCert
in classBouncyCastleSecurityService
-
exportCurrentSslCert
- Specified by:
exportCurrentSslCert
in interfaceISecurityService
- Overrides:
exportCurrentSslCert
in classBouncyCastleSecurityService
-
checkThatKeystoreFileExists
protected void checkThatKeystoreFileExists() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException- Overrides:
checkThatKeystoreFileExists
in classSecurityService
- Throws:
KeyStoreException
NoSuchAlgorithmException
CertificateException
IOException
-
initializeSecretKey
protected void initializeSecretKey()- Overrides:
initializeSecretKey
in classSecurityService
-