Class SecurityManagerProviderFactory
- java.lang.Object
-
- com.github.toolarium.security.keystore.SecurityManagerProviderFactory
-
public final class SecurityManagerProviderFactory extends java.lang.ObjectDefines the security manager provider factory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityManagerProviderFactorygetInstance()Get the instanceISecurityManagerProvidergetSecurityManagerProvider()Get the security manager provider with self signed certificate and added to the trust store.ISecurityManagerProvidergetSecurityManagerProvider(IKeyStoreConfiguration trustKeyStoreConfiguration, IKeyStoreConfiguration keyManagerKeyStoreConfiguration)Get the security manager providerISecurityManagerProvidergetSecurityManagerProvider(java.io.File trustKeyStoreFile, java.io.File keyManagerKeyStoreFile, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword)Get the security manager providerISecurityManagerProvidergetSecurityManagerProvider(java.io.File trustKeyStoreFile, java.io.File keyManagerKeyStoreFile, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword, java.lang.String keyStoreType)Get the security manager providerISecurityManagerProvidergetSecurityManagerProvider(java.lang.String certificateStoreAlias, java.lang.String keyStorePassword)Get the security manager provider with self signed certificate and added to the trust store.ISecurityManagerProvidergetSecurityManagerProvider(java.security.KeyStore trustKeyStore, java.security.KeyStore keyManagerKeyStore, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword)Get the security manager provider
-
-
-
Method Detail
-
getInstance
public static SecurityManagerProviderFactory getInstance()
Get the instance- Returns:
- the instance
-
getSecurityManagerProvider
public ISecurityManagerProvider getSecurityManagerProvider()
Get the security manager provider with self signed certificate and added to the trust store.- Returns:
- the security manager provider
-
getSecurityManagerProvider
public ISecurityManagerProvider getSecurityManagerProvider(java.lang.String certificateStoreAlias, java.lang.String keyStorePassword)
Get the security manager provider with self signed certificate and added to the trust store.- Parameters:
certificateStoreAlias- the certificate store aliaskeyStorePassword- the keystore password- Returns:
- the security manager provider
-
getSecurityManagerProvider
public ISecurityManagerProvider getSecurityManagerProvider(java.security.KeyStore trustKeyStore, java.security.KeyStore keyManagerKeyStore, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword)
Get the security manager provider- Parameters:
trustKeyStore- the trust key storekeyManagerKeyStore- the key manager storekeyManagerStorePassword- the key manager store password- Returns:
- the security manager provider
-
getSecurityManagerProvider
public ISecurityManagerProvider getSecurityManagerProvider(java.io.File trustKeyStoreFile, java.io.File keyManagerKeyStoreFile, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword) throws java.security.GeneralSecurityException, java.io.IOException
Get the security manager provider- Parameters:
trustKeyStoreFile- the trust key store file or null to use the defaultkeyManagerKeyStoreFile- the key manager store filekeyManagerStorePassword- the key manager store password- Returns:
- the security manager provider
- Throws:
java.io.IOException- in case of a file read errorjava.security.GeneralSecurityException- in case of error
-
getSecurityManagerProvider
public ISecurityManagerProvider getSecurityManagerProvider(java.io.File trustKeyStoreFile, java.io.File keyManagerKeyStoreFile, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword, java.lang.String keyStoreType) throws java.security.GeneralSecurityException, java.io.IOException
Get the security manager provider- Parameters:
trustKeyStoreFile- the trust key store file or null to use the defaultkeyManagerKeyStoreFile- the key manager store filekeyManagerStorePassword- the key manager store passwordkeyStoreType- the key store type or null- Returns:
- the security manager provider
- Throws:
java.io.IOException- in case of a file read errorjava.security.GeneralSecurityException- in case of error
-
getSecurityManagerProvider
public ISecurityManagerProvider getSecurityManagerProvider(IKeyStoreConfiguration trustKeyStoreConfiguration, IKeyStoreConfiguration keyManagerKeyStoreConfiguration) throws java.security.GeneralSecurityException, java.io.IOException
Get the security manager provider- Parameters:
trustKeyStoreConfiguration- the trust key store configuration or null to use the defaultkeyManagerKeyStoreConfiguration- the key manager store file- Returns:
- the security manager provider
- Throws:
java.io.IOException- in case of a file read errorjava.security.GeneralSecurityException- in case of error
-
-