Package de.xima.fc.certificate.mgmt.io
Enum CryptoExportElement
- java.lang.Object
-
- java.lang.Enum<CryptoExportElement>
-
- de.xima.fc.certificate.mgmt.io.CryptoExportElement
-
- All Implemented Interfaces:
Serializable,Comparable<CryptoExportElement>
public enum CryptoExportElement extends Enum<CryptoExportElement> implements Serializable
Enumeration of supported export formats for cryptographic keys and certificates.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERTIFICATECSRKEY_PAIRPRIVATE_KEYPUBLIC_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ICryptoFileTypegetDefaultFileType()StringgetDisplayName(Locale locale)StringgetHelpText(Locale locale)intgetSupportedFileTypeCount()ICryptoFileType[]getSupportedFileTypes()booleanisRequiresPassword()static CryptoExportElementvalueOf(String name)Returns the enum constant of this type with the specified name.static CryptoExportElement[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CERTIFICATE
public static final CryptoExportElement CERTIFICATE
-
PUBLIC_KEY
public static final CryptoExportElement PUBLIC_KEY
-
PRIVATE_KEY
public static final CryptoExportElement PRIVATE_KEY
-
KEY_PAIR
public static final CryptoExportElement KEY_PAIR
-
CSR
public static final CryptoExportElement CSR
-
-
Method Detail
-
values
public static CryptoExportElement[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CryptoExportElement c : CryptoExportElement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CryptoExportElement valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDefaultFileType
public ICryptoFileType getDefaultFileType()
-
getSupportedFileTypeCount
public int getSupportedFileTypeCount()
-
getSupportedFileTypes
public ICryptoFileType[] getSupportedFileTypes()
-
isRequiresPassword
public boolean isRequiresPassword()
-
-