com.smartbear.readyapi.client.auth.KerberosAuthenticationBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
Java client library for creating and executing test recipes against Ready!API TestServer
package com.smartbear.readyapi.client.auth;
import com.smartbear.readyapi.client.model.Authentication;
import static com.smartbear.readyapi.client.Validator.validateNotEmpty;
public class KerberosAuthenticationBuilder extends NTLMAuthenticationBuilder {
public KerberosAuthenticationBuilder(String username, String password) {
super(username, password);
}
@Override
public Authentication build() {
validateNotEmpty(authentication.getUsername(), "Missing username, it's a required parameter for SPNEGO/Kerberos Auth.");
validateNotEmpty(authentication.getPassword(), "Missing password, it's a required parameter for SPNEGO/Kerberos Auth.");
authentication.setType("SPNEGO/Kerberos");
return authentication;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy