Class SecurityManagerProviderImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      SecurityManagerProviderImpl​(java.security.KeyStore trustManagerStore, java.security.KeyStore keyManagerStore, com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword)
      Constructor for SecurityManagerImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.net.ssl.KeyManager[] createKeyManager​(java.security.KeyStore keyStore, com.github.toolarium.common.security.ISecuredValue<java.lang.String> storePassword)
      Create a KeyManager for the given key store
      protected javax.net.ssl.TrustManager[] createTrustManagers​(java.security.KeyStore keyStore)
      Create a TrustManager for the given key store.
      javax.net.ssl.KeyManager[] getKeyManagers()
      Returns the key manager.
      javax.net.ssl.TrustManager[] getTrustManagers()
      Returns the trust manager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecurityManagerProviderImpl

        public SecurityManagerProviderImpl​(java.security.KeyStore trustManagerStore,
                                           java.security.KeyStore keyManagerStore,
                                           com.github.toolarium.common.security.ISecuredValue<java.lang.String> keyManagerStorePassword)
        Constructor for SecurityManagerImpl
        Parameters:
        trustManagerStore - the trust manager store
        keyManagerStore - the key manager store
        keyManagerStorePassword - the key manager store password
        Throws:
        java.lang.IllegalArgumentException - In case of an invalid key manager store or password
    • Method Detail

      • createKeyManager

        protected javax.net.ssl.KeyManager[] createKeyManager​(java.security.KeyStore keyStore,
                                                              com.github.toolarium.common.security.ISecuredValue<java.lang.String> storePassword)
                                                       throws java.security.GeneralSecurityException
        Create a KeyManager for the given key store
        Parameters:
        keyStore - The key store
        storePassword - the store password
        Returns:
        The key managers in the given key store
        Throws:
        java.security.GeneralSecurityException - if the key store could not be loaded
      • createTrustManagers

        protected javax.net.ssl.TrustManager[] createTrustManagers​(java.security.KeyStore keyStore)
                                                            throws java.security.GeneralSecurityException
        Create a TrustManager for the given key store.
        Parameters:
        keyStore - The key store
        Returns:
        The trust manager
        Throws:
        java.security.GeneralSecurityException - if the creation failed