SSL Client Configuration

Generated Objects

	@Property(name = "MySSLClientConfiguration")
public SSLClientResource mySSLClientConfiguration;
private IdentityTrust mySSLClientConfigurationIdentityTrust;

mySSLClientConfigurationIdentityTrust is an instance of com.tibco.trinity.runtime.base.provider.identity.IdentityTrust. You can use to access resource.

Business Logic Example

class MySSLActivityExecutor implements Runnable {
		@Override
		public void run() {
			if(getActivityLogger().isDebugEnabled()) {
				activityLogger.debug(RuntimeMessageBundle.DEBUG_PLUGIN_ACTIVITY_METHOD_CALLED
									,new Object[] { "Executor run()"
									,activityContext.getActivityName()
									,activityContext.getProcessName()
									,activityContext.getDeploymentUnitName()
									,activityContext.getDeploymentUnitVersion() });
				String serializedNode = XMLUtils.serializeNode(inputData, processContext.getXMLProcessingContext());
		    	activityLogger.debug(RuntimeMessageBundle.DEBUG_PLUGIN_ACTIVITY_INPUT, new Object[] {activityContext.getActivityName(), serializedNode});
			}
			
			try {		
				
		
			
							// begin-custom-code
							// add your own business code here
				
				// print aliases from the trust store
				try {
					Enumeration<String> aliases = mySSLClientConfigurationIdentityTrust
							.getTrustStore().aliases();
					while (aliases.hasMoreElements()) {
						System.out.println("***" + aliases.nextElement());
					}
				} catch (KeyStoreException e) {
					// TODO Auto-generated catch block
					throw new ActivityFault(activityContext, e);
				}
							// end-custom-code
				
			
				N output = null;
				SerializableXMLDocument<N> wrapper = new SerializableXMLDocument<N>(processContext.getXMLProcessingContext(), output);
				notifier.setReady(wrapper);
			} catch (Exception e) {
				e.printStackTrace();
				notifier.setReady(e);
			}
		}
	}