1 package fr.in2p3.jsaga.adaptor.security;
2
3 import fr.in2p3.jsaga.adaptor.base.defaults.Default;
4 import fr.in2p3.jsaga.adaptor.base.usage.Usage;
5 import org.ogf.saga.error.*;
6
7 import java.util.Map;
8
9
10
11
12
13
14
15
16
17
18
19
20
21 public class NoneSecurityAdaptor implements SecurityAdaptor {
22 public String getType() {
23 return "None";
24 }
25
26 public Usage getUsage() {
27 return null;
28 }
29
30 public Default[] getDefaults(Map attributes) throws IncorrectStateException {
31 return null;
32 }
33
34 public Class getSecurityCredentialClass() {
35 return NoneSecurityCredential.class;
36 }
37
38 public SecurityCredential createSecurityCredential(int usage, Map attributes, String contextId) throws IncorrectStateException, TimeoutException, NoSuccessException {
39 return new NoneSecurityCredential();
40 }
41 }