68cfcd2c5f31438fc5e5d311555d281a911752b5
[so/libs.git] /
1 package com.woorea.openstack.keystone.model.authentication;
2
3 import org.codehaus.jackson.map.annotate.JsonRootName;
4
5 import com.woorea.openstack.keystone.model.Authentication;
6
7 @JsonRootName("auth")
8 public class TokenAuthentication extends Authentication {
9         
10         public static final class Token {
11                 
12                 private String id;
13
14                 /**
15                  * @return the id
16                  */
17                 public String getId() {
18                         return id;
19                 }
20
21                 /**
22                  * @param id the id to set
23                  */
24                 public void setId(String id) {
25                         this.id = id;
26                 }
27                 
28         }
29         
30         private Token token = new Token();
31         
32         public TokenAuthentication(String token) {
33                 this.token.id = token;
34         }
35
36         /**
37          * @return the token
38          */
39         public Token getToken() {
40                 return token;
41         }
42
43         /**
44          * @param token the token to set
45          */
46         public void setToken(Token token) {
47                 this.token = token;
48         }
49         
50 }