View Javadoc

1   /**
2    *       Copyright 2010 Newcastle University
3    *
4    *          http://research.ncl.ac.uk/smart/
5    *
6    * Licensed to the Apache Software Foundation (ASF) under one or more
7    * contributor license agreements.  See the NOTICE file distributed with
8    * this work for additional information regarding copyright ownership.
9    * The ASF licenses this file to You under the Apache License, Version 2.0
10   * (the "License"); you may not use this file except in compliance with
11   * the License.  You may obtain a copy of the License at
12   *
13   *      http://www.apache.org/licenses/LICENSE-2.0
14   *
15   * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   */
21  
22  package org.apache.amber.oauth2.client.demo.model;
23  
24  
25  /**
26   *
27   *
28   *
29   */
30  public class OAuthParams {
31  
32      private String clientId;
33      private String clientSecret;
34      private String redirectUri;
35      private String authzEndpoint;
36      private String tokenEndpoint;
37      private String authzCode;
38      private String accessToken;
39      private Long expiresIn;
40      private String refreshToken;
41      private String scope;
42      private String resourceUrl;
43      private String resource;
44      private String application;
45      private String requestType;
46      private String requestMethod;
47  
48      private String errorMessage;
49  
50      public String getClientId() {
51          return clientId;
52      }
53  
54      public void setClientId(String clientId) {
55          this.clientId = clientId;
56      }
57  
58      public String getClientSecret() {
59          return clientSecret;
60      }
61  
62      public void setClientSecret(String clientSecret) {
63          this.clientSecret = clientSecret;
64      }
65  
66      public String getRedirectUri() {
67          return redirectUri;
68      }
69  
70      public void setRedirectUri(String redirectUri) {
71          this.redirectUri = redirectUri;
72      }
73  
74      public String getAuthzEndpoint() {
75          return authzEndpoint;
76      }
77  
78      public void setAuthzEndpoint(String authzEndpoint) {
79          this.authzEndpoint = authzEndpoint;
80      }
81  
82      public String getTokenEndpoint() {
83          return tokenEndpoint;
84      }
85  
86      public void setTokenEndpoint(String tokenEndpoint) {
87          this.tokenEndpoint = tokenEndpoint;
88      }
89  
90      public String getAuthzCode() {
91          return authzCode;
92      }
93  
94      public void setAuthzCode(String authzCode) {
95          this.authzCode = authzCode;
96      }
97  
98      public String getErrorMessage() {
99          return errorMessage;
100     }
101 
102     public void setErrorMessage(String errorMessage) {
103         this.errorMessage = errorMessage;
104     }
105 
106     public String getAccessToken() {
107         return accessToken;
108     }
109 
110     public void setAccessToken(String accessToken) {
111         this.accessToken = accessToken;
112     }
113 
114     public Long getExpiresIn() {
115         return expiresIn;
116     }
117 
118     public void setExpiresIn(String expiresIn) {
119         this.expiresIn = Long.parseLong(expiresIn);
120     }
121     
122     public void setExpiresIn(Long expiresIn) {
123         this.expiresIn = expiresIn;
124     }
125 
126     public String getRefreshToken() {
127         return refreshToken;
128     }
129 
130     public void setRefreshToken(String refreshToken) {
131         this.refreshToken = refreshToken;
132     }
133 
134     public String getResourceUrl() {
135         return resourceUrl;
136     }
137 
138     public void setResourceUrl(String resourceUrl) {
139         this.resourceUrl = resourceUrl;
140     }
141 
142     public String getResource() {
143         return resource;
144     }
145 
146     public void setResource(String resource) {
147         this.resource = resource;
148     }
149 
150     public String getScope() {
151         return scope;
152     }
153 
154     public void setScope(String scope) {
155         this.scope = scope;
156     }
157 
158     public String getApplication() {
159         return application;
160     }
161 
162     public void setApplication(String application) {
163         this.application = application;
164     }
165 
166 	public String getRequestType() {
167 		return requestType;
168 	}
169 
170 	public void setRequestType(String requestType) {
171 		this.requestType = requestType;
172 	}
173 
174 	public String getRequestMethod() {
175 		return requestMethod;
176 	}
177 
178 	public void setRequestMethod(String requestMethod) {
179 		this.requestMethod = requestMethod;
180 	}
181 }