Class AbstractResourceKeyPairProvider<R>

    • Field Detail

      • cacheMap

        private final java.util.Map<java.lang.String,​java.lang.Iterable<java.security.KeyPair>> cacheMap
    • Constructor Detail

      • AbstractResourceKeyPairProvider

        protected AbstractResourceKeyPairProvider()
    • Method Detail

      • resetCacheMap

        protected void resetCacheMap​(java.util.Collection<?> resources)
        Checks which of the new resources we already loaded and can keep the associated key pair
        Parameters:
        resources - The collection of new resources - can be null/empty in which case the cache is cleared
      • loadKeys

        protected java.lang.Iterable<java.security.KeyPair> loadKeys​(SessionContext session,
                                                                     java.util.Collection<? extends R> resources)
      • doLoadKeys

        protected java.lang.Iterable<java.security.KeyPair> doLoadKeys​(SessionContext session,
                                                                       R resource)
                                                                throws java.io.IOException,
                                                                       java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • doLoadKeys

        protected java.lang.Iterable<java.security.KeyPair> doLoadKeys​(SessionContext session,
                                                                       NamedResource resourceKey,
                                                                       R resource,
                                                                       FilePasswordProvider provider)
                                                                throws java.io.IOException,
                                                                       java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • openKeyPairResource

        protected java.io.InputStream openKeyPairResource​(SessionContext session,
                                                          NamedResource resourceKey,
                                                          R resource)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • doLoadKeys

        protected java.lang.Iterable<java.security.KeyPair> doLoadKeys​(SessionContext session,
                                                                       NamedResource resourceKey,
                                                                       java.io.InputStream inputStream,
                                                                       FilePasswordProvider provider)
                                                                throws java.io.IOException,
                                                                       java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException