Package org.jumpmind.security
Interface ISecurityService
- All Known Implementing Classes:
AzureKeyVaultSecurityService
,BouncyCastleSecurityService
,SecurityService
public interface ISecurityService
Pluggable Service API that is responsible for encrypting and decrypting data.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDefaultSslCert
(String host) createSslCert
(byte[] content, String fileType, String alias, String password) createTrustedCert
(byte[] content, String fileType, String alias, String password) void
deleteKeystoreEntry
(String alias) exportCurrentSslCert
(boolean includePrivateKey) exportTrustedCert
(String alias) getCipher
(int cipherMode) getKeystoreEntry
(String key) void
init()
void
void
installDefaultSslCert
(String host) void
void
nextSecureHexString
(int len) void
void
setKeystoreEntry
(String alias, String value) boolean
boolean
boolean
boolean
unobfuscate
(String obfText) unobfuscateIfNeeded
(String systemPropertyName)
-
Method Details
-
init
void init() -
installTrustedCert
-
installDefaultSslCert
-
installDefaultSamlSslCert
-
installSslCert
-
createTrustedCert
KeyStore.TrustedCertificateEntry createTrustedCert(byte[] content, String fileType, String alias, String password) -
createDefaultSslCert
-
createSslCert
KeyStore.PrivateKeyEntry createSslCert(byte[] content, String fileType, String alias, String password) -
getCurrentSslCert
X509Certificate getCurrentSslCert() -
exportTrustedCert
-
exportCurrentSslCert
-
nextSecureHexString
-
encrypt
-
decrypt
-
obfuscate
-
unobfuscate
-
unobfuscateIfNeeded
-
getKeyStore
KeyStore getKeyStore() -
getKeyManagerFactory
KeyManagerFactory getKeyManagerFactory() -
getTrustStore
KeyStore getTrustStore() -
saveTrustStore
- Throws:
Exception
-
getCipher
- Throws:
Exception
-
getKeystoreEntry
- Throws:
Exception
-
setKeystoreEntry
- Throws:
Exception
-
deleteKeystoreEntry
- Throws:
Exception
-
supportsExportCertificate
boolean supportsExportCertificate() -
supportsImportCertificate
boolean supportsImportCertificate() -
supportsBackupCertificate
boolean supportsBackupCertificate() -
supportsGenerateSelfSignedCertificate
boolean supportsGenerateSelfSignedCertificate()
-