View Javadoc
1   /*
2    * Copyright 2011 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5    * the License. You may obtain a copy of the License at
6    *
7    * https://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10   * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11   * specific language governing permissions and limitations under the License.
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  }