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

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

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