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