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) voiddeleteKeystoreEntry(String alias) exportCurrentSslCert(boolean includePrivateKey) exportTrustedCert(String alias) getCipher(int cipherMode) getKeystoreEntry(String key) voidinit()voidvoidinstallDefaultSslCert(String host) voidvoidnextSecureHexString(int len) voidvoidsetKeystoreEntry(String alias, String value) booleanbooleanbooleanbooleanunobfuscate(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()
-