1 18 19 package sync4j.framework.core.bootstrap; 20 21 import java.io.Serializable ; 22 23 import org.apache.commons.lang.builder.ToStringBuilder; 24 25 31 public class BootStrap implements Serializable { 32 33 private String msisdn; 35 private String username; 36 private String password; 37 private String deviceId; 38 private String imsi; 39 private String userPin; 40 private byte[] bootstrapMessage; 41 private String digest; 42 private int authMethod; 43 private boolean imsiInSemiOctet; 44 45 49 public String getMsisdn() { 50 return msisdn; 51 } 52 53 57 public void setMsisdn(String msisdn) { 58 this.msisdn = msisdn; 59 } 60 61 65 public String getUsername() { 66 return username; 67 } 68 69 73 public void setUsername(String username) { 74 this.username = username; 75 } 76 77 81 public String getPassword() { 82 return password; 83 } 84 85 89 public void setPassword(String password) { 90 this.password = password; 91 } 92 93 97 public String getDeviceId() { 98 return deviceId; 99 } 100 101 105 public void setDeviceId(String deviceId) { 106 this.deviceId = deviceId; 107 } 108 109 113 public String getImsi() { 114 return imsi; 115 } 116 117 121 public void setImsi(String imsi) { 122 this.imsi = imsi; 123 } 124 125 129 public byte[] getBootstrapMessage() { 130 return bootstrapMessage; 131 } 132 133 137 public void setBootstrapMessage(byte[] bootstrapMessage) { 138 this.bootstrapMessage = bootstrapMessage; 139 } 140 141 145 public String getDigest() { 146 return digest; 147 } 148 149 153 public void setDigest(String digest) { 154 this.digest = digest; 155 } 156 157 161 public int getAuthMethod() { 162 return authMethod; 163 } 164 165 169 public void setAuthMethod(int authMethod) { 170 this.authMethod = authMethod; 171 } 172 173 177 public boolean isImsiInSemiOctet() { 178 return imsiInSemiOctet; 179 } 180 181 185 public void setImsiInSemiOctet(boolean imsiInSemiOctet) { 186 this.imsiInSemiOctet = imsiInSemiOctet; 187 } 188 189 193 public String getUserPin() { 194 return userPin; 195 } 196 197 201 public void setUserPin(String userPin) { 202 this.userPin = userPin; 203 } 204 205 207 210 public BootStrap() { 211 } 212 213 216 public BootStrap(String msisdn, 217 String username, 218 String password, 219 String deviceId, 220 String imsi, 221 String userPin, 222 byte[] bootstrapMessage, 223 String digest, 224 int authMethod, 225 boolean imsiInSemiOctet) { 226 227 this.msisdn = msisdn; 228 this.username = username; 229 this.password = password; 230 this.deviceId = deviceId; 231 this.imsi = imsi; 232 this.userPin = userPin; 233 this.bootstrapMessage = bootstrapMessage; 234 this.digest = digest; 235 this.authMethod = authMethod; 236 this.imsiInSemiOctet = imsiInSemiOctet; 237 238 } 239 240 242 246 public String toString() { 247 ToStringBuilder sb = new ToStringBuilder(this); 248 249 sb.append("msisdn" , msisdn); 250 sb.append("username", username); 251 sb.append("password", password); 252 sb.append("deviceId", deviceId); 253 sb.append("imsi" , imsi); 254 sb.append("userPin" , userPin); 255 sb.append("authMethod" , authMethod); 256 sb.append("bootstrapMessage", bootstrapMessage); 257 sb.append("digest" , digest); 258 sb.append("imsiInSemiOctet" , imsiInSemiOctet); 259 260 261 return sb.toString(); 262 } 263 264 265 } | Popular Tags |