Skip to content

Instantly share code, notes, and snippets.

@marianogonzalez
Created February 1, 2012 20:24
Show Gist options
  • Save marianogonzalez/1719098 to your computer and use it in GitHub Desktop.
Save marianogonzalez/1719098 to your computer and use it in GitHub Desktop.
public class SimpleCredentialsAccessor implements CredentialsAccessor {
private String credentials;
public SimpleCredentialsAccessor(String credentials) {
this.credentials = credentials;
}
@Override
public Object getCredentials(MuleEvent event) {
return this.credentials;
}
@Override
public void setCredentials(MuleEvent event, Object credentials) {
this.credentials = (String) credentials;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment