com.venafi.vcert.sdk.connectors.cloud.domain.CloudZone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcert-java Show documentation
Show all versions of vcert-java Show documentation
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.
package com.venafi.vcert.sdk.connectors.cloud.domain;
import com.venafi.vcert.sdk.VCertException;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
public class CloudZone {
@Getter private String zone;
@Getter private String appName;
@Getter private String citAlias;
public CloudZone(String zone ) throws VCertException {
this.zone = zone;
String values[] = StringUtils.split(zone, "\\");
if( values == null || values.length < 2)
throw new VCertException("The zone is not corrected formatted. It should be at the way of AppName\\CitAlias");
appName = values[0];
citAlias = values[1];
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy