1 18 19 package sync4j.framework.core.dm.ddf; 20 21 import java.util.Hashtable ; 22 import java.util.Map ; 23 24 25 32 public class NAP { 33 34 36 public static final String NAP_BEARER = "/Bearer"; 37 public static final String NAP_ADDR_TYPE = "/AddrType"; 38 public static final String NAP_ADDR = "/Addr"; 39 public static final String NAP_AUTH = "/Auth"; 40 41 private String bearer; 43 private String address; 44 private String addressType; 45 46 private Map auths; 48 49 51 public NAP() { 52 this.auths = new Hashtable (); 53 } 54 55 63 public NAP(final String bearer, 64 final String address, 65 final String addressType) { 66 this(); 67 this.bearer = bearer; 68 this.address = address; 69 this.addressType = addressType; 70 71 } 72 73 75 80 public String getBearer() { 81 return bearer; 82 } 83 84 89 public void setBearer(String bearer) { 90 this.bearer = bearer; 91 } 92 93 94 99 public String getAddress() { 100 return address; 101 } 102 103 108 public void setAddress(String address) { 109 this.address = address; 110 } 111 112 117 public String getAddressType() { 118 return addressType; 119 } 120 121 126 public void setAddressType(String addressType) { 127 this.addressType = addressType; 128 } 129 130 135 public Auth getAuth(String authenticationName) { 136 return (Auth)auths.get(authenticationName); 137 } 138 139 144 public Map getAuths() { 145 return auths; 146 } 147 148 153 public void setAuths(Map auths) { 154 this.auths = auths; 155 } 156 157 158 163 public void addAuth(Auth auth, String authenticationName) { 164 auths.put(authenticationName, auth); 165 } 166 167 } | Popular Tags |