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

com.bettercloud.vault.api.pki.CredentialFormat Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
package com.bettercloud.vault.api.pki;

import java.util.List;

/**
 * 

Possible format options for credentials issued by the PKI backend.

* *

See: {@link Pki#issue(String, String, List, List, Integer, CredentialFormat) Pki.issue}

*/ public enum CredentialFormat { PEM, DER, PEM_BUNDLE; public static CredentialFormat fromString(final String text) { if (text != null) { for (final CredentialFormat format : CredentialFormat.values()) { if (text.equalsIgnoreCase(format.toString())) { return format; } } } return null; } @Override public String toString() { return super.toString().toLowerCase(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy