Search in sources :

Example 1 with LinkTarget

use of org.platformlayer.ops.uses.LinkTarget in project platformlayer by platformlayer.

the class StandardTemplateData method getAdditionalKeys.

public void getAdditionalKeys(Map<String, ManagedSecretKey> keys) throws OpsException {
    for (Link link : getLinks()) {
        ItemBase item = platformLayer.getItem(link.getTarget());
        LinkTarget linkTarget = providers.toInterface(item, LinkTarget.class);
        PlatformLayerKey caPath = linkTarget.getCaForClientKey();
        if (caPath != null) {
            String alias = links.buildKeyName(link);
            keys.put(alias, findCaSignedKey(caPath, alias));
        }
    }
}
Also used : ItemBase(org.platformlayer.core.model.ItemBase) LinkTarget(org.platformlayer.ops.uses.LinkTarget) PlatformLayerKey(org.platformlayer.core.model.PlatformLayerKey) Link(org.platformlayer.core.model.Link)

Aggregations

ItemBase (org.platformlayer.core.model.ItemBase)1 Link (org.platformlayer.core.model.Link)1 PlatformLayerKey (org.platformlayer.core.model.PlatformLayerKey)1 LinkTarget (org.platformlayer.ops.uses.LinkTarget)1