View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.pgp;
8   
9   import org.mule.api.MuleEvent;
10  import org.mule.api.security.CredentialsAccessor;
11  
12  public class FakeCredentialAccessor implements CredentialsAccessor
13  {
14      private String credentials = "Mule client <mule_client@mule.com>";
15      
16      public FakeCredentialAccessor()
17      {
18  
19      }
20      
21      public FakeCredentialAccessor(String string)
22      {
23          this.credentials = string;
24      }
25  
26      public String getCredentials()
27      {
28          return credentials;
29      }
30  
31      public void setCredentials(String credentials)
32      {
33          this.credentials = credentials;
34      }
35  
36      public Object getCredentials(MuleEvent event)
37      {
38          return this.credentials;
39      }
40  
41      public void setCredentials(MuleEvent event, Object credentials)
42      {
43          // dummy
44      }
45  
46  }