Class CryptoProviders

    • Method Detail

      • registerCryptoProvider

        public void registerCryptoProvider​(CryptoProvider provider)
        Adds a CryptoProvider to this registry.

        TODO: do we need provider priority ordering?

        Parameters:
        provider - CryptoProvider
      • getCryptoProviderInstance

        public <T extends CryptoProvider> T getCryptoProviderInstance​(java.lang.Class<T> providerClass)
        Returns the previously registered matching CryptoProvider instance.
        Type Parameters:
        T - CryptoProvider type
        Parameters:
        providerClass - CryptoProvider class
        Returns:
        previously registered CryptoProvider instance, or null if not found
      • newSession

        public CryptoSession newSession()
        Creates a new CryptoSession.

        TODO: to truly be effective when multiple files are being opened (ie. batch import), nested sessions need to be implemented.

        Returns:
        new CryptoSession instance