Interface KeyResourceLoader

  • All Known Implementing Classes:
    SpringKeyResourceLoader

    public interface KeyResourceLoader
    Manages key resources (key store and key store passwords)
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.InputStream getKeyStore​(java.lang.String keyStoreLocation)
      Loads and returns an InputStream of the key store at the configured location.
      java.util.Properties loadKeyMetaData​(java.lang.String keyMetaDataFileLocation)
      Loads key metadata from the configured passwords file location.
    • Method Detail

      • getKeyStore

        java.io.InputStream getKeyStore​(java.lang.String keyStoreLocation)
                                 throws java.io.FileNotFoundException
        Loads and returns an InputStream of the key store at the configured location. If the file cannot be found this method returns null.
        Returns:
        InputStream
        Throws:
        java.io.FileNotFoundException
      • loadKeyMetaData

        java.util.Properties loadKeyMetaData​(java.lang.String keyMetaDataFileLocation)
                                      throws java.io.IOException,
                                             java.io.FileNotFoundException
        Loads key metadata from the configured passwords file location. Note that the passwords are not cached locally. If the file cannot be found this method returns null.
        Returns:
        Properties
        Throws:
        java.io.IOException
        java.io.FileNotFoundException