This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spring:bean id="fakeCredentialAccessor" class="org.mule.example.SimpleCredentialsAccessor"> | |
<spring:constructor-arg value="The Receiver <the@receiver.com>" /> | |
</spring:bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SimpleCredentialsAccessor implements CredentialsAccessor { | |
private String credentials; | |
public SimpleCredentialsAccessor(String credentials) { | |
this.credentials = credentials; | |
} | |
@Override | |
public Object getCredentials(MuleEvent event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pgp:security-manager> | |
<pgp:security-provider name="pgpSecurityProvider" keyManager-ref="pgpKeyManager" /> | |
<pgp:keybased-encryption-strategy name="keyBasedEncryptionStrategy" keyManager-ref="pgpKeyManager" credentialsAccessor-ref="fakeCredentialAccessor" /> | |
</pgp:security-manager> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sub-flow name="encryptFlow"> | |
<encrypt-transformer name="pgpEncrypt" strategy-ref="keyBasedEncryptionStrategy" /> | |
<object-to-string-transformer /> | |
<ftp:outbound-endpoint host="${ftp.host}" | |
port="${ftp.port}" user="${ftp.user}" password="${ftp.password}" | |
outputPattern="file_#[function:datestamp:MMddyyyy].txt" | |
connector-ref="ftpConnector"> | |
</ftp:outbound-endpoint> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.mule.modules</groupId> | |
<artifactId>mule-module-pgp</artifactId> | |
<version>${mule.version}</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ssh="http://www.mulesoft.org/schema/mule/sshmultiplexedconnector" | |
xsi:schemaLocation=" | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd | |
http://www.mulesoft.org/schema/mule/ssh http://www.mulesoft.org/schema/mule/sshmultiplexedconnector/1.0/mule-sshmultiplexedconnector.xsd"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ssh:config host="ssh.mycompany.com" port="22" timeout="6000" callbackFlowName="callback" shellMode="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="exampleFlow"> | |
<ssh:send username="${ssh.user}" password="${ssh.pass}" content="cd test" breakLine="true" /> | |
<ssh:send username="${ssh.user}" password="${ssh.pass}" content="cat helloWorld.txt" breakLine="true"/> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="callback"> | |
<logger message="sent to #[header:INBOUND:SSH_CALLBACK_USER], message says: #[payload]" /> | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="release"> | |
<ssh:release username="${ssh.user}"/> | |
</flow> |