com.venafi.vcert.sdk.certificate.KeySize 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;
import lombok.Getter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public enum KeySize {
KS512(512),
KS1024(1024),
KS2048(2048),
KS3072(3072),
KS4096(4096),
KS8192(8192);
private static final Map LOOKUP = new HashMap();
static {
for (KeySize keySize : KeySize.values()) {
LOOKUP.put(keySize.value(), keySize);
}
}
public static KeySize from(String key) {
return LOOKUP.get(key);
}
public static List allSupportedSizes() {
return Arrays.asList(KeySize.values());
}
@Getter
private final int value;
KeySize(int value){
this.value = value;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy