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

com.venafi.vcert.sdk.connectors.cloud.domain.CloudZone 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.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