@Test void testLinkDestinationClientAuthPrivateKey() { Bundle bundle = new Bundle(); bundle.addEntity(createPrivateKey("key2")); final JmsDestination jmsDestination = createJmsDestinationBuilder(null, null) .additionalProperties(new HashMap<String, Object>() {{ put(DESTINATION_CLIENT_AUTH_KEYSTORE_ALIAS, "key2"); }}) .build(); linker.link(jmsDestination, bundle, bundle); assertEquals(ImmutableMap.of(DESTINATION_CLIENT_AUTH_KEYSTORE_ALIAS, "key2"), jmsDestination.getAdditionalProperties()); }
@Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); } }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }  }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }  @Override Class<JmsDestination> getEntityClass(); @Override void link(JmsDestination entity, Bundle bundle, Bundle targetBundle); }
JmsDestinationLinker implements EntityLinker<JmsDestination> { @Override public void link(JmsDestination entity, Bundle bundle, Bundle targetBundle) { linkJndiStoredPassword(entity, bundle); linkDestinationStoredPassword(entity, bundle); linkInboundAssociatedService(entity, bundle); verifyPrivateKeys(entity, bundle); }  @Override Class<JmsDestination> getEntityClass(); @Override void link(JmsDestination entity, Bundle bundle, Bundle targetBundle);  }