<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 10/27/17 11:28 AM, Cantor, Scott
wrote:</div>
<blockquote type="cite"
cite="mid:B2E9E819-C861-4AAF-BC6F-E6CA7241D254@osu.edu">
<blockquote type="cite">
<pre wrap="">How do files end up in this directory and what is the file naming convention?
</pre>
</blockquote>
<pre wrap="">
Ideally there isn't one and it simply monitors the directory and loads what's there, but that's work.
</pre>
</blockquote>
<br>
For the IdP LocalDynamic- provider, the naming convention is a
plugin, see the 'sourceKeyGeneratorRef' property:<br>
<br>
<a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/display/IDP30/LocalDynamicMetadataProvider">https://wiki.shibboleth.net/confluence/display/IDP30/LocalDynamicMetadataProvider</a><br>
<br>
Default is lower-case hex encoding of SHA-1 hash of entityID.<br>
<br>
So it's pluggable, but it can't be arbitrary and has to be known in
advance. If it's literally load-on-demand (as the IdP LocalDynamic-
is), as opposed to the other approach of "periodically scan a
directory and load everything that's there", then you have to be
able to map from (at least) the entityID -> dynamic lookup key,
and so you have to decide a strategy in advance.<br>
<br>
<blockquote type="cite"
cite="mid:B2E9E819-C861-4AAF-BC6F-E6CA7241D254@osu.edu">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">What file naming convention will be used in the cache dir?
</pre>
</blockquote>
<pre wrap="">
Unspecified, I would hope.</pre>
</blockquote>
<br>
In the IdP, for all the dynamic providers, it's also a plugin
configured via 'persistentCacheKeyGeneratorRef', with the same
defaults.<br>
<br>
However, for the persistent cache, the use case is different than
primary dynamic lookup case above. On startup/reload, it *does*
traverse that directory and load everything that's there that's 1)
valid (i.e. not expired) 2) passes an optional predicate. If it's
cache key (e.g. file name) is not what would be expected based on
the configured key generator, then it renames the cache key
accordingly.
<blockquote type="cite"
cite="mid:B2E9E819-C861-4AAF-BC6F-E6CA7241D254@osu.edu">
</blockquote>
<br>
</body>
</html>