argos/dmp-backend/core/src/main/java/eu/eudat/model/persist/referencetypedefinition/AuthenticationConfiguration...

72 lines
1.8 KiB
Java
Raw Normal View History

2023-11-07 12:15:25 +01:00
package eu.eudat.model.persist.referencetypedefinition;
2023-11-15 15:09:24 +01:00
import eu.eudat.commons.enums.ReferenceTypeExternalApiHTTPMethodType;
2023-12-19 14:46:31 +01:00
import eu.eudat.commons.validation.old.ValidEnum;
2023-11-07 12:15:25 +01:00
import jakarta.validation.constraints.NotNull;
public class AuthenticationConfigurationPersist {
2023-11-22 11:56:17 +01:00
@NotNull(message = "{validation.empty}")
private Boolean enabled;
2023-11-07 12:15:25 +01:00
@NotNull(message = "{validation.empty}")
2023-11-15 15:09:24 +01:00
private String authUrl;
2023-11-07 12:15:25 +01:00
2023-11-15 15:09:24 +01:00
@ValidEnum(message = "{validation.empty}")
private ReferenceTypeExternalApiHTTPMethodType authMethod;
2023-11-07 12:15:25 +01:00
@NotNull(message = "{validation.empty}")
2023-11-15 15:09:24 +01:00
private String authTokenPath ;
2023-11-07 12:15:25 +01:00
@NotNull(message = "{validation.empty}")
2023-11-15 15:09:24 +01:00
private String authRequestBody;
2023-11-07 12:15:25 +01:00
@NotNull(message = "{validation.empty}")
2023-11-15 15:09:24 +01:00
private String type;
2023-11-07 12:15:25 +01:00
2023-11-22 11:56:17 +01:00
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
2023-11-07 12:15:25 +01:00
public String getAuthUrl() {
return authUrl;
}
public void setAuthUrl(String authUrl) {
this.authUrl = authUrl;
}
2023-11-15 15:09:24 +01:00
public ReferenceTypeExternalApiHTTPMethodType getAuthMethod() {
2023-11-07 12:15:25 +01:00
return authMethod;
}
2023-11-15 15:09:24 +01:00
public void setAuthMethod(ReferenceTypeExternalApiHTTPMethodType authMethod) {
2023-11-07 12:15:25 +01:00
this.authMethod = authMethod;
}
public String getAuthTokenPath() {
return authTokenPath;
}
public void setAuthTokenPath(String authTokenPath) {
this.authTokenPath = authTokenPath;
}
public String getAuthRequestBody() {
return authRequestBody;
}
public void setAuthRequestBody(String authRequestBody) {
this.authRequestBody = authRequestBody;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}