Package software.amazon.awssdk.crt.io
Enum TlsContextOptions.CertificateSource
- java.lang.Object
-
- java.lang.Enum<TlsContextOptions.CertificateSource>
-
- software.amazon.awssdk.crt.io.TlsContextOptions.CertificateSource
-
- All Implemented Interfaces:
Serializable,Comparable<TlsContextOptions.CertificateSource>
- Enclosing class:
- TlsContextOptions
public static enum TlsContextOptions.CertificateSource extends Enum<TlsContextOptions.CertificateSource>
Identifies the source of the mTLS certificate/private key configured on aTlsContextOptions. Used internally by the IoT Device SDK metrics layer to encode feature "I" of the SDK metrics string. Values are set automatically by thecreateWithMtls*factory methods (and theirwithMtls*equivalents).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERTIFICATE_FILESPEM cert + key files (in-memory or on-disk).JAVA_KEYSTOREJava keystore.PKCS11Hardware security module via PKCS#11.PKCS12_FILEPKCS#12 (.p12 / .pfx) file.WINDOWS_CERT_STOREWindows certificate store.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TlsContextOptions.CertificateSourcevalueOf(String name)Returns the enum constant of this type with the specified name.static TlsContextOptions.CertificateSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CERTIFICATE_FILES
public static final TlsContextOptions.CertificateSource CERTIFICATE_FILES
PEM cert + key files (in-memory or on-disk).
-
PKCS11
public static final TlsContextOptions.CertificateSource PKCS11
Hardware security module via PKCS#11.
-
WINDOWS_CERT_STORE
public static final TlsContextOptions.CertificateSource WINDOWS_CERT_STORE
Windows certificate store.
-
JAVA_KEYSTORE
public static final TlsContextOptions.CertificateSource JAVA_KEYSTORE
Java keystore.
-
PKCS12_FILE
public static final TlsContextOptions.CertificateSource PKCS12_FILE
PKCS#12 (.p12 / .pfx) file.
-
-
Method Detail
-
values
public static TlsContextOptions.CertificateSource[] 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 (TlsContextOptions.CertificateSource c : TlsContextOptions.CertificateSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TlsContextOptions.CertificateSource 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
-
-