public static boolean isEncryptedProperty(String key){
  Map<String,PropertyMetadata> metadata=PropertiesMetadata.getGlobalMetadata();
  if (metadata != null) {
    PropertyMetadata propertyMetadata=metadata.get(key);
    if (propertyMetadata != null && ENCRYPTEDSTRING.equals(propertyMetadata.getType())) {
      return true;
    }
  }
  return false;
}

public static boolean isEncryptedProperty ( String key ) { Map < String , PropertyMetadata > metadata = PropertiesMetadata . getGlobalMetadata ( ) ; if ( metadata != null ) { PropertyMetadata propertyMetadata = metadata . get ( key ) ; if ( propertyMetadata != null && ENCRYPTEDSTRING . equals ( propertyMetadata . getType ( ) ) ) { return true ; } } return false ; }
check if the given property is encryptedstring .
