| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* WebAuthenticationCredential.java
|
|
|
3 |
*
|
|
|
4 |
* This file was auto-generated from WSDL
|
|
|
5 |
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
package com.fedex.track.stub;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* Two part authentication string used for the sender's identity
|
|
|
13 |
*/
|
|
|
14 |
public class WebAuthenticationCredential implements java.io.Serializable {
|
|
|
15 |
/* Identifying part of authentication credential. This value is
|
|
|
16 |
* provided by FedEx after registration */
|
|
|
17 |
private java.lang.String key;
|
|
|
18 |
|
|
|
19 |
/* Secret part of authentication key. This value is provided by
|
|
|
20 |
* FedEx after registration. */
|
|
|
21 |
private java.lang.String password;
|
|
|
22 |
|
|
|
23 |
public WebAuthenticationCredential() {
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public WebAuthenticationCredential(
|
|
|
27 |
java.lang.String key,
|
|
|
28 |
java.lang.String password) {
|
|
|
29 |
this.key = key;
|
|
|
30 |
this.password = password;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
/**
|
|
|
35 |
* Gets the key value for this WebAuthenticationCredential.
|
|
|
36 |
*
|
|
|
37 |
* @return key * Identifying part of authentication credential. This value is
|
|
|
38 |
* provided by FedEx after registration
|
|
|
39 |
*/
|
|
|
40 |
public java.lang.String getKey() {
|
|
|
41 |
return key;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
* Sets the key value for this WebAuthenticationCredential.
|
|
|
47 |
*
|
|
|
48 |
* @param key * Identifying part of authentication credential. This value is
|
|
|
49 |
* provided by FedEx after registration
|
|
|
50 |
*/
|
|
|
51 |
public void setKey(java.lang.String key) {
|
|
|
52 |
this.key = key;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
/**
|
|
|
57 |
* Gets the password value for this WebAuthenticationCredential.
|
|
|
58 |
*
|
|
|
59 |
* @return password * Secret part of authentication key. This value is provided by
|
|
|
60 |
* FedEx after registration.
|
|
|
61 |
*/
|
|
|
62 |
public java.lang.String getPassword() {
|
|
|
63 |
return password;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
/**
|
|
|
68 |
* Sets the password value for this WebAuthenticationCredential.
|
|
|
69 |
*
|
|
|
70 |
* @param password * Secret part of authentication key. This value is provided by
|
|
|
71 |
* FedEx after registration.
|
|
|
72 |
*/
|
|
|
73 |
public void setPassword(java.lang.String password) {
|
|
|
74 |
this.password = password;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
private java.lang.Object __equalsCalc = null;
|
|
|
78 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
79 |
if (!(obj instanceof WebAuthenticationCredential)) return false;
|
|
|
80 |
WebAuthenticationCredential other = (WebAuthenticationCredential) obj;
|
|
|
81 |
if (obj == null) return false;
|
|
|
82 |
if (this == obj) return true;
|
|
|
83 |
if (__equalsCalc != null) {
|
|
|
84 |
return (__equalsCalc == obj);
|
|
|
85 |
}
|
|
|
86 |
__equalsCalc = obj;
|
|
|
87 |
boolean _equals;
|
|
|
88 |
_equals = true &&
|
|
|
89 |
((this.key==null && other.getKey()==null) ||
|
|
|
90 |
(this.key!=null &&
|
|
|
91 |
this.key.equals(other.getKey()))) &&
|
|
|
92 |
((this.password==null && other.getPassword()==null) ||
|
|
|
93 |
(this.password!=null &&
|
|
|
94 |
this.password.equals(other.getPassword())));
|
|
|
95 |
__equalsCalc = null;
|
|
|
96 |
return _equals;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
private boolean __hashCodeCalc = false;
|
|
|
100 |
public synchronized int hashCode() {
|
|
|
101 |
if (__hashCodeCalc) {
|
|
|
102 |
return 0;
|
|
|
103 |
}
|
|
|
104 |
__hashCodeCalc = true;
|
|
|
105 |
int _hashCode = 1;
|
|
|
106 |
if (getKey() != null) {
|
|
|
107 |
_hashCode += getKey().hashCode();
|
|
|
108 |
}
|
|
|
109 |
if (getPassword() != null) {
|
|
|
110 |
_hashCode += getPassword().hashCode();
|
|
|
111 |
}
|
|
|
112 |
__hashCodeCalc = false;
|
|
|
113 |
return _hashCode;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
// Type metadata
|
|
|
117 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
118 |
new org.apache.axis.description.TypeDesc(WebAuthenticationCredential.class, true);
|
|
|
119 |
|
|
|
120 |
static {
|
|
|
121 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "WebAuthenticationCredential"));
|
|
|
122 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
123 |
elemField.setFieldName("key");
|
|
|
124 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Key"));
|
|
|
125 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
126 |
elemField.setNillable(false);
|
|
|
127 |
typeDesc.addFieldDesc(elemField);
|
|
|
128 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
129 |
elemField.setFieldName("password");
|
|
|
130 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Password"));
|
|
|
131 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
132 |
elemField.setNillable(false);
|
|
|
133 |
typeDesc.addFieldDesc(elemField);
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
/**
|
|
|
137 |
* Return type metadata object
|
|
|
138 |
*/
|
|
|
139 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
140 |
return typeDesc;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
/**
|
|
|
144 |
* Get Custom Serializer
|
|
|
145 |
*/
|
|
|
146 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
147 |
java.lang.String mechType,
|
|
|
148 |
java.lang.Class _javaType,
|
|
|
149 |
javax.xml.namespace.QName _xmlType) {
|
|
|
150 |
return
|
|
|
151 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
152 |
_javaType, _xmlType, typeDesc);
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
/**
|
|
|
156 |
* Get Custom Deserializer
|
|
|
157 |
*/
|
|
|
158 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
159 |
java.lang.String mechType,
|
|
|
160 |
java.lang.Class _javaType,
|
|
|
161 |
javax.xml.namespace.QName _xmlType) {
|
|
|
162 |
return
|
|
|
163 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
164 |
_javaType, _xmlType, typeDesc);
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
}
|