
com.symphony.api.model.Password Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* Password. Stored as derived password in both the Pod and the Key Manager using PBKDF2 function. Number of iterations should be 10000 and desired length 256 bits.
**/
@Schema(description="Password. Stored as derived password in both the Pod and the Key Manager using PBKDF2 function. Number of iterations should be 10000 and desired length 256 bits.")
public class Password {
@Schema(description = "Pod password salt used for PBKDF2 derivation.")
/**
* Pod password salt used for PBKDF2 derivation.
**/
private String hSalt = null;
@Schema(description = "Pod password derived with PBKDF2.")
/**
* Pod password derived with PBKDF2.
**/
private String hPassword = null;
@Schema(description = "Key Manager password salt used for PBKDF2 derivation.")
/**
* Key Manager password salt used for PBKDF2 derivation.
**/
private String khSalt = null;
@Schema(description = "Key Manager password derived with PBKDF2.")
/**
* Key Manager password derived with PBKDF2.
**/
private String khPassword = null;
/**
* Pod password salt used for PBKDF2 derivation.
* @return hSalt
**/
@JsonProperty("hSalt")
public String getHSalt() {
return hSalt;
}
public void setHSalt(String hSalt) {
this.hSalt = hSalt;
}
public Password hSalt(String hSalt) {
this.hSalt = hSalt;
return this;
}
/**
* Pod password derived with PBKDF2.
* @return hPassword
**/
@JsonProperty("hPassword")
public String getHPassword() {
return hPassword;
}
public void setHPassword(String hPassword) {
this.hPassword = hPassword;
}
public Password hPassword(String hPassword) {
this.hPassword = hPassword;
return this;
}
/**
* Key Manager password salt used for PBKDF2 derivation.
* @return khSalt
**/
@JsonProperty("khSalt")
public String getKhSalt() {
return khSalt;
}
public void setKhSalt(String khSalt) {
this.khSalt = khSalt;
}
public Password khSalt(String khSalt) {
this.khSalt = khSalt;
return this;
}
/**
* Key Manager password derived with PBKDF2.
* @return khPassword
**/
@JsonProperty("khPassword")
public String getKhPassword() {
return khPassword;
}
public void setKhPassword(String khPassword) {
this.khPassword = khPassword;
}
public Password khPassword(String khPassword) {
this.khPassword = khPassword;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Password {\n");
sb.append(" hSalt: ").append(toIndentedString(hSalt)).append("\n");
sb.append(" hPassword: ").append(toIndentedString(hPassword)).append("\n");
sb.append(" khSalt: ").append(toIndentedString(khSalt)).append("\n");
sb.append(" khPassword: ").append(toIndentedString(khPassword)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy