public static KEYSTORE_TYPE fromString(String x) throws ConfigurationException {
  for (  KEYSTORE_TYPE currentType : KEYSTORE_TYPE.values()) {
    if (x.equalsIgnoreCase(currentType.toString()))     return currentType;
  }
  throw new ConfigurationException(MessageFormat.format("Cannot cast into a known CERTIFICATE_KEY_TYPE: {0}",x));
}

public static KEYSTORE_TYPE fromString ( String x ) throws ConfigurationException { for ( KEYSTORE_TYPE currentType : KEYSTORE_TYPE . values ( ) ) { if ( x . equalsIgnoreCase ( currentType . toString ( ) ) ) return currentType ; } throw new ConfigurationException ( MessageFormat . format ( "Cannot cast into a known CERTIFICATE_KEY_TYPE: {0}" , x ) ) ; }
converts a string into the corresponding keystore_type
