View Javadoc

1   package fr.in2p3.jsaga.adaptor.security;
2   
3   import org.ogf.saga.error.NoSuccessException;
4   import org.ogf.saga.error.NotImplementedException;
5   
6   import java.io.PrintStream;
7   
8   /* ***************************************************
9    * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
10   * ***             http://cc.in2p3.fr/             ***
11   * ***************************************************
12   * File:   NoneSecurityCredential
13   * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
14   * ***************************************************
15   * Description:                                      */
16  
17  /**
18   *
19   */
20  public class NoneSecurityCredential implements SecurityCredential {
21      public String getUserID() throws Exception {
22          return "";
23      }
24  
25      public String getAttribute(String key) throws NotImplementedException, NoSuccessException {
26          return null;
27      }
28  
29      public void close() throws Exception {
30          // do nothing
31      }
32  
33      public void dump(PrintStream out) throws Exception {
34          // do nothing
35      }
36  }