public static KeyStoreFileType fromPropertyValue(String propertyValue) {
    if (propertyValue == null || propertyValue.length() == 0) {
      return null;
    }
    return KeyStoreFileType.valueOf(propertyValue.toUpperCase());
  }
Converts a property value to a StoreFileType enum. If the property value is <code>null</code>
or an empty string, returns <code>null</code>.
@param propertyValue the property value.
@return the KeyStoreFileType, or <code>null</code> if <code>propertyValue</code> is
        <code>null</code> or empty.
@throws IllegalArgumentException if <code>propertyValue</code> is not one of "JKS", "PEM",
                                 "BCFKS", "PKCS12", or empty/null.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/tls/KeyStoreFileType.java