com.manywho.sdk.api.security.AuthenticationCredentials Maven / Gradle / Ivy
package com.manywho.sdk.api.security;
import com.manywho.sdk.api.AuthorizationType;
import com.manywho.sdk.api.run.EngineValue;
import com.manywho.sdk.api.run.elements.ConfigurationValuesAware;
import org.apache.commons.collections4.CollectionUtils;
import javax.validation.constraints.NotNull;
import java.util.List;
public class AuthenticationCredentials implements ConfigurationValuesAware {
@NotNull
private List configurationValues;
private AuthorizationType authenticationType;
private String username;
private String password;
private String token;
private String code;
private String sessionToken;
private String sessionUrl;
private String loginUrl;
private String redirectUri;
private String instanceUrl;
public List getConfigurationValues() {
return configurationValues;
}
@Override
public boolean hasConfigurationValues() {
return CollectionUtils.isNotEmpty(configurationValues);
}
public void setConfigurationValues(List configurationValues) {
this.configurationValues = configurationValues;
}
public AuthorizationType getAuthenticationType() {
return authenticationType;
}
public void setAuthenticationType(AuthorizationType authenticationType) {
this.authenticationType = authenticationType;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getSessionToken() {
return sessionToken;
}
public void setSessionToken(String sessionToken) {
this.sessionToken = sessionToken;
}
public String getSessionUrl() {
return sessionUrl;
}
public void setSessionUrl(String sessionUrl) {
this.sessionUrl = sessionUrl;
}
public String getLoginUrl() {
return loginUrl;
}
public void setLoginUrl(String loginUrl) {
this.loginUrl = loginUrl;
}
public String getRedirectUri() {
return redirectUri;
}
public void setRedirectUri(String redirectUri) {
this.redirectUri = redirectUri;
}
public String getInstanceUrl() {
return instanceUrl;
}
public void setInstanceUrl(String instanceUrl) {
this.instanceUrl = instanceUrl;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy