1
2
3
4
5
6
7
8
9
10
11
12
13 package org.springframework.security.oauth2.http.converter.jaxb;
14
15 import javax.xml.bind.annotation.XmlAccessOrder;
16 import javax.xml.bind.annotation.XmlAccessorOrder;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlRootElement;
19
20 @XmlRootElement(name = "oauth")
21 @XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
22 class JaxbOAuth2Exception {
23 private String errorCode;
24
25 private String description;
26
27 @XmlElement(name = "error")
28 public String getErrorCode() {
29 return errorCode;
30 }
31
32 public void setErrorCode(String errorCode) {
33 this.errorCode = errorCode;
34 }
35
36 @XmlElement(name = "error_description")
37 public String getDescription() {
38 return description;
39 }
40
41 public void setDescription(String description) {
42 this.description = description;
43 }
44
45 }