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

com.venafi.vcert.sdk.certificate.ChainOption 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.certificate;

public enum ChainOption {
  // ChainOptionRootLast specifies the root certificate should be in the last position of the chain
  ChainOptionRootLast,
  // ChainOptionRootFirst specifies the root certificate should be in the first position of the
  // chain
  ChainOptionRootFirst,
  // ChainOptionIgnore specifies the chain should be ignored
  ChainOptionIgnore;

  public static ChainOption fromString(String order) {
    switch (order.toLowerCase()) {
      case "root-first":
        return ChainOptionRootFirst;
      case "ignore":
        return ChainOptionIgnore;
      default:
        return ChainOptionRootLast;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy