summaryrefslogtreecommitdiffstats
path: root/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java
diff options
context:
space:
mode:
Diffstat (limited to 'keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java')
-rw-r--r--keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java87
1 files changed, 44 insertions, 43 deletions
diff --git a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java
index c92d1da..428b3ed 100644
--- a/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java
+++ b/keystone-model/src/main/java/com/woorea/openstack/keystone/v3/model/Authentication.java
@@ -19,14 +19,13 @@ package com.woorea.openstack.keystone.v3.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
-
import com.fasterxml.jackson.annotation.JsonRootName;
@JsonRootName("auth")
public class Authentication implements Serializable {
-
+
public static final class Identity {
-
+
public static final Identity password(String userId, String password) {
Identity identity = new Identity();
identity.getMethods().add("password");
@@ -36,12 +35,13 @@ public class Authentication implements Serializable {
identity.setPassword(method);
return identity;
}
-
+
public static final Identity password(String domainName, String username, String password) {
Identity identity = new Identity();
identity.getMethods().add("password");
Password method = new Password();
- com.woorea.openstack.keystone.v3.model.Authentication.Identity.Password.User.Domain domain = new com.woorea.openstack.keystone.v3.model.Authentication.Identity.Password.User.Domain();
+ com.woorea.openstack.keystone.v3.model.Authentication.Identity.Password.User.Domain domain =
+ new com.woorea.openstack.keystone.v3.model.Authentication.Identity.Password.User.Domain();
domain.setName(domainName);
method.getUser().setDomain(domain);
method.getUser().setName(username);
@@ -49,7 +49,7 @@ public class Authentication implements Serializable {
identity.setPassword(method);
return identity;
}
-
+
public static final Identity token(String token) {
Identity identity = new Identity();
identity.getMethods().add("token");
@@ -58,17 +58,17 @@ public class Authentication implements Serializable {
identity.setToken(method);
return identity;
}
-
+
private List<String> methods = new ArrayList<>();
-
+
public static final class Password {
-
+
public static final class User {
-
+
public static final class Domain {
-
+
private String id;
-
+
private String name;
public String getId() {
@@ -87,13 +87,13 @@ public class Authentication implements Serializable {
this.name = name;
}
}
-
+
private Domain domain;
-
+
private String id;
-
+
private String name;
-
+
private String password;
public Domain getDomain() {
@@ -127,9 +127,9 @@ public class Authentication implements Serializable {
public void setPassword(String password) {
this.password = password;
}
-
+
}
-
+
private User user = new User();
public User getUser() {
@@ -139,13 +139,13 @@ public class Authentication implements Serializable {
public void setUser(User user) {
this.user = user;
}
-
+
}
-
+
private Password password;
-
+
public static final class Token {
-
+
private String id;
public String getId() {
@@ -155,9 +155,9 @@ public class Authentication implements Serializable {
public void setId(String id) {
this.id = id;
}
-
+
}
-
+
private Token token;
public List<String> getMethods() {
@@ -183,13 +183,13 @@ public class Authentication implements Serializable {
public void setToken(Token token) {
this.token = token;
}
-
+
}
-
+
private Identity identity;
-
+
public static final class Scope {
-
+
public static Scope project(String id) {
Scope scope = new Scope();
Project project = new Project();
@@ -197,10 +197,11 @@ public class Authentication implements Serializable {
scope.setProject(project);
return scope;
}
-
+
public static Scope project(String domainName, String projectName) {
Scope scope = new Scope();
- com.woorea.openstack.keystone.v3.model.Authentication.Scope.Project.Domain domain = new com.woorea.openstack.keystone.v3.model.Authentication.Scope.Project.Domain();
+ com.woorea.openstack.keystone.v3.model.Authentication.Scope.Project.Domain domain =
+ new com.woorea.openstack.keystone.v3.model.Authentication.Scope.Project.Domain();
domain.setName(domainName);
Project project = new Project();
project.setDomain(domain);
@@ -208,13 +209,13 @@ public class Authentication implements Serializable {
scope.setProject(project);
return scope;
}
-
+
public static final class Project {
-
+
public static final class Domain {
-
+
private String id;
-
+
private String name;
public String getId() {
@@ -233,13 +234,13 @@ public class Authentication implements Serializable {
this.name = name;
}
}
-
+
private String id;
-
+
private Domain domain;
-
+
private String name;
-
+
public String getId() {
return id;
@@ -264,9 +265,9 @@ public class Authentication implements Serializable {
public void setName(String name) {
this.name = name;
}
-
+
}
-
+
private Project project;
public Project getProject() {
@@ -276,9 +277,9 @@ public class Authentication implements Serializable {
public void setProject(Project project) {
this.project = project;
}
-
+
}
-
+
private Scope scope;
public Identity getIdentity() {
@@ -296,5 +297,5 @@ public class Authentication implements Serializable {
public void setScope(Scope scope) {
this.scope = scope;
}
-
+
}