All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.venafi.vcert.sdk.endpoint.Authentication Maven / Gradle / Ivy

Go to download

VCert is a Java library, SDK, designed to simplify key generation and enrollment of machine identities (also known as SSL/TLS certificates and keys) that comply with enterprise security policy by using the Venafi Platform or Venafi Cloud.

There is a newer version: 0.9.3
Show newest version
package com.venafi.vcert.sdk.endpoint;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class Authentication {

	private String user;
	private String password; // todo: char[] ?
	private String accessToken;
	private String refreshToken;
	private String apiKey;
	@Builder.Default
	private String clientId = "vcert-sdk";
	@Builder.Default
	private String scope = "certificate:manage,revoke";
	@Builder.Default
	private String state = "";
	@Builder.Default
	private String redirectUri ="";

	public Authentication() {}

	public Authentication(String user, String password, String apiKey) {
		super();
		this.user = user;
		this.password = password;
		this.apiKey = apiKey;
	}

	public Authentication(String user, String password, String accessToken, String refreshToken, String apiKey,
			String clientId, String scope, String state,
			String redirectUri) {
		super();
		this.user = user;
		this.password = password;
		this.apiKey = apiKey;
		this.clientId = clientId;
		this.scope = scope;
		this.state = state;
		this.redirectUri = redirectUri;
		this.accessToken = accessToken;
		this.refreshToken = refreshToken;
	}

	@Override
	public String toString() {
		return Authentication.class.getSimpleName() + "(user=" + user + ", apiKey=" + apiKey
				+ ", password=" + (password!=null && !password.isEmpty() ? "****" : "not set") + ")";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy