Class SecurityManagerProviderFactory


  • public final class SecurityManagerProviderFactory
    extends java.lang.Object
    Defines the security manager provider factory
    • Method Detail

      • 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 alias
        keyStorePassword - 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 store
        keyManagerKeyStore - the key manager store
        keyManagerStorePassword - 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 default
        keyManagerKeyStoreFile - the key manager store file
        keyManagerStorePassword - the key manager store password
        Returns:
        the security manager provider
        Throws:
        java.io.IOException - in case of a file read error
        java.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 default
        keyManagerKeyStoreFile - the key manager store file
        keyManagerStorePassword - the key manager store password
        keyStoreType - the key store type or null
        Returns:
        the security manager provider
        Throws:
        java.io.IOException - in case of a file read error
        java.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 default
        keyManagerKeyStoreConfiguration - the key manager store file
        Returns:
        the security manager provider
        Throws:
        java.io.IOException - in case of a file read error
        java.security.GeneralSecurityException - in case of error